cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

javascript in adobe forms

Former Member
0 Likes
1,494

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.

View Entire Topic
0 Likes

hi experts

here we are getting single value as response how we can get internal table as response..

Regards

JItendra