Expand my Community achievements bar.

Unable to pass input parameters to WS function

Avatar

Level 1

Hi,

I am calling a web service function from my PDF document, but the problem is that function doesn't receive the input parameter. I have even tried this with a webservice available on internet and facing the same problem.

Please look the code below where my PDF document is interacting with the web services on internet:

var strURL = "http://www.webservicex.net/globalweather.asmx?wsdl";
var service = SOAP.connect(strURL);
var CountryName = {soapType: "xsd:string",soapValue: "Australia"};
var result = service.GetCitiesByCountry(CountryName);
console.println(result);

I have even tried with simple string variable like:

var CountryName = "Australia";

But same problem.

The error I am getting is:

SOAPError: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Procedure or function 'getWCity' expects parameter '@CountryName', which was not supplied.
   at WebServicex.GlobalWeather.GetCitiesByCountry(String CountryName)
   --- End of inner exception stack trace ---

Thanks in anticipation.

Regards,

Qarshi

0 Replies