Home » Developer & Programmer » Forms » Calling webservices in forms
Calling webservices in forms [message #185170] Mon, 31 July 2006 06:28 Go to next message
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(
    a0    VARCHAR2) IS
    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); 
In the when button pressed of the form, My code looks like this.
my_object ORA_JAVA.jOBJECT ;
my_object := CALLWEBSVC.new() ;
CALLWEBSVC.CallWebService( my_object, 'xmlData' );

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
Messages: 10180
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

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

Current Time: Sun Jul 23 12:15:30 CDT 2017

Total time taken to generate the page: 0.10169 seconds