My web service takes string [][] as a parameter, but when I call webservice method it gives error:
cannot convert from 'string[][]' to 'ServiceReference1.ArrayOfString[]
//strItems1 is the array
string [][] strItems1 = new string[m_Inputs][];
for (int i =0; i < m_Inputs; i++)
strItems1[i] = new string[2];
for (int i =0; i < m_Inputs; i++)
{
strItems1[i][0] = "test";
strItems1[i][1] = "test 1";
}
oS.CostFromStringArray(strItems1, oDB.EscapeString(STZ.Text), Total); //web service method on which i am getting error
It's just a string table that is always going to be string[n][2], i also tried using multi-dimensional arrays but wsdl gave error that use jagged arrays instead.