Skip to Content
0
Jan 25, 2011 at 11:20 AM

Calling web service in Offline adobe form

114 Views

Hi all,

I have created webservice in backend system and have see it in SOA Manager. Have set the HTTP authentication as UserID/Password for the defiend service via SOA Manager.

I am using the wsdl of the webservice created from "Open WSDL document from selected bindings" in NWDS and am able to create Data Connection properly. On the click of the button have written the below code in Click event :

var cURL = "http://xyz:8000/sap/bc/srt/wsdl/bndg_4D33AD4FE1183C0DE1000000AC122492/wsdl11/allinone/ws_policy/document?sap-client=100";

var service = SOAP.connect(cURL);

xfa.host.messageBox("here4" + xfa.connectionSet.DataConnection.execute(0));

Here after the button is clicked in the form, it just prints the message "here 4 false" but nothing happens in the backed. Ideally it should have added a new record in a database table.

Can anyone let me know what could be ppossibly wrong in this and how can i debug my appplication it it is able to create connection with backend server.

Regards,

Namrata