Hi experts,
I call a web service in javascript when button is clicked. Please help check the following code:
try {
xfa.host.messageBox("welcome"); //pop-up
var myRequest={Celsius:"50"};
var service = SOAP.connect( "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl");
xfa.host.messageBox("Connected" + service); //pop-up "Connected[objectSoapService]"
for(var i in service) xfa.host.messageBox(i); //nothing
var response = service.CelsiusToFahrenheit(myRequest);
xfa.host.messageBox("Called");
xfa.resolveNode("TextField1").rawValue = response ;
} catch(e) {
xfa.host.messageBox(e.toString()); //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}
Thanks.