I have a webservice that returns a Array of Arrays / jagged array.
I'm having problems to handle it in my local C# windows form app.
Initialy it was giving me Content Type error. Now with the sample bellow code, it's returning me a empty array.
I also tried to return a Single-dimensional array but the result is the same.
WebService Side:
[WebMethod]
public string[] teste()
{
string[] a = new string[1] { "one" };
string[] b = new string[1] { "two" };
string[][] c = { a, b };
return c;
}
Local Side:
class open_notes
{
public static ServiceReference1.Smart_Stick_ServiceSoapClient web_service = new ServiceReference1.Smart_Stick_ServiceSoapClient();
public static void open()
{
string[][] a = null;
a [0][0] = web_service.teste().ToString();
MessageBox.Show(a[0][0]);
}
}