Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Web Service call

Avatar

Level 2

Hi there,

I am trying to call a web service programmatically from a form but keep getting this error: service has no properties.

Can someone perhaps assist me with what I could be doing wrong?

My code is as follows:

try{

var cURL = “http://webservices.daehosting.com/services/TemperatureConversions.wso?WSDL”;

SOAP.wireDump = false;

var service = SOAP.connect(cURL);

var Input = {nFahrenheit:33};

var result = service.FahrenheitToCelcius(Input);

xfa.host.messageBox(result);

} catch (e) {

xfa.host.messageBox(“The web service could not be invoked. This may either be because you are running in Reader instead of Acrobat,”

+ ” or you do not have a ReaderEnabled form, or the Web Service is unavailable.Underlying error: ” + e);

}

Thanks,


R

1 Reply

Avatar

Level 10

I just ran the script successfully AFTER fixing the cURL. Try removing the space between ? and WSDL

http://webservices.daehosting.com/services/TemperatureConversions.wso? WSDL

Steve