Expand my Community achievements bar.

How to pass string array as parameter to web service method

Avatar

Former Community Member
Hi,



I have design form in adobe live cycle designer which interacts with web services.I use javascript coding to call a web service method. This web service method was written in asp.net(C#) which accepts string array as input parameter and returns a string as output.I am able to pass a simple string as parameter to method and it works fine but i am not able pass string array as input parameter to method.This my code



SOAP.wireDump = false;

var cListURL = "http://localhost:1738/WBSCatalog/Service.asmx?WSDL";

var service = SOAP.connect(cListURL);

if(typeof service != "object")

console.println("Couldn't get List object");

if(service.getAvailableQty == "undefined")

console.println("Couldn't get getAllServiceNames Call");

var result = service.getAvailableQty({"ItemNos":ItemNoStr});



where "ItemNos" is name of the string array parameter which was used in .net webservice method definition and ItemNoStr is the actual string array which contains values.



Please help me out.Thanks in advance for any help.
0 Replies