Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 28, 2011 05:00 PM by sansan
Member
23 Points
29 Posts
Mar 28, 2011 12:39 PM|LINK
I have a webservice which has a Array of Arraylist argument as like as below code:
[WebMethod]
public string UpdateWorkerVariableInfo(string UserName, ArrayList[] EducateInfo)
Now I wanna know how can I send Arraylist Array to webservice, because when I want to call this function it wants object[][] data type.
All-Star
53942 Points
8147 Posts
Mar 28, 2011 05:00 PM|LINK
You can add any object to the arraylist. In your case, you can add an arraylist to the EducateInfo arraylist that you are passing to the service
ArrayList arrayList = new ArrayList(); arrayList.Add(new ArrayList() { "Test Value", 1, 2, "Something" }); arrayList.Add(new ArrayList() { "Test Value 2", 1, 2, "Something 2" });
RaymondMorph...
Member
23 Points
29 Posts
Sending Array of ArrayList via WebService
Mar 28, 2011 12:39 PM|LINK
I have a webservice which has a Array of Arraylist argument as like as below code:
[WebMethod]
public string UpdateWorkerVariableInfo(string UserName, ArrayList[] EducateInfo)
Now I wanna know how can I send Arraylist Array to webservice, because when I want to call this function it wants object[][] data type.
sansan
All-Star
53942 Points
8147 Posts
Re: Sending Array of ArrayList via WebService
Mar 28, 2011 05:00 PM|LINK
You can add any object to the arraylist. In your case, you can add an arraylist to the EducateInfo arraylist that you are passing to the service