Home » Developer & Programmer » Forms » Calling webservices in forms
Calling webservices in forms [message #185170] Mon, 31 July 2006 06:28 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.

[Updated on: Mon, 07 August 2006 01:58] by Moderator

Report message to a moderator

Re: Calling webservices in forms [message #186212 is a reply to message #185170] Mon, 07 August 2006 01:57 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have a look at the reference I gave in thread http://www.orafaq.com/forum/m/184857/67467/?srch=CALLWEBSVC.CallWebService#msg_184857

David
Previous Topic: Multi Language Support in Forms?
Next Topic: Forms 9i on XP SP2 flakiness
Goto Forum:
  


Current Time: Fri Sep 20 11:34:49 CDT 2024