Home » Developer & Programmer » JDeveloper, Java & XML » Calling webservices in forms
Calling webservices in forms [message #185171] Mon, 31 July 2006 06:29 Go to next message
orafan2003
Messages: 122
Registered: February 2006
Senior Member
I am trying to call webservice from oracle forms. I imported Java classes in the form using the Java importer.
Now the Java class has created a procedure with a code like this.
-- Method: CallWebService (Ljava/lang/String;)V
PROCEDURE CallWebService(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2) IS
BEGIN
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_STRING_ARG(args, a0);
JNI.CALL_VOID_METHOD(FALSE, obj, 'soa/CallWebSvc', 'CallWebService', '(Ljava/lang/String;)V', args);
END;
In the when button pressed of the form, My code looks like this.
declare
my_object ORA_JAVA.jOBJECT ;
begin
my_object := CALLWEBSVC.new() ;
CALLWEBSVC.CallWebService( my_object, 'xmlData' );
end;

When I click the button on the form, it has to invoke the webservice...but it is not working. Not giving any message too.
Kindly guide me.

Re: Calling webservices in forms [message #187997 is a reply to message #185171] Wed, 16 August 2006 11:42 Go to previous message
rashmigopinath
Messages: 3
Registered: August 2006
Junior Member
If you are using 9i Forms, please refer to the following OTN page to verify all the steps:
http://www.oracle.com/technology/products/forms/htdocs/Forms_WebService_How_To.htm

For 10g, please refer to the following URL:
http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm

Thanks,
Rashmi
Previous Topic: Connecting Java bean to Oracle?
Next Topic: Jdeveloper - Multipule Records.
Goto Forum:
  


Current Time: Sat Dec 10 07:01:05 CST 2016

Total time taken to generate the page: 0.04769 seconds