Hi All,
I am working on web service call using javascript. I used below code while calling web service on click event of button.
var e;
try
{
var oListURL = "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL";
SOAP.wireDump = true;
var service = SOAP.connect(oListURL);
xfa.host.messageBox(service.toString());
if(typeof service != "object")
{
xfa.host.messageBox("Couldn't connect to " + oListURL);
}
if(!service.ConversionRate(138,56))
{
xfa.host.messageBox("The ConversionRate method does not exist on the service at " + oListURL);
}
//call the service
var svcResponse = service.ConversionRate(138,56);
xfa.host.messageBox(svcResponse.toString());
if(!svcResponse)
{
xfa.host.messageBox("The service returned nothing");
}
}
catch(e)
{
xfa.host.messageBox("Exception: " + e);
}
I do not get any response for it. I always get "0" as response.
How do i passed session id to soap header while calling web service in designer??
Is there any other adobe javascript with which i can call web service as well as i may able to provide session id to its soap header.
Request you all to share any information regarding this.
Thanks in advance.
Regards
Abhishek