Calling webservices in forms [message #185171] |
Mon, 31 July 2006 06:29 |
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.
|
|
|
|