Connecting Tech Pros Worldwide Forums | Help | Site Map

C#: App. How to have a list as out parameter in c# web service

Newbie
 
Join Date: Aug 2008
Posts: 4
#1: Aug 15 '08
I have a C# 2.0 web service (using Visual Studio 2005.NET ) for development.
And can't figure out how to have multiple out parameters in a web service if one is a List<string>.

Here is the web service method:

[WebMethod]
public void GetStringList_out(out int JustFiller, out List<string> FileFilter)
{
JustFiller = 23;
FileFilter = new List<string>();
FileFilter.Add("first ");
FileFilter.Add("second ");
}


But how do you call this on the client side (C# 2.0 windows) also?

And, the first out parameter is always missing in the point of view of the client, so I had to add JustFiller as an out parameter ???

Reply