I am developing a webservice. In one web method, i will have two string arrays and I want to return this two string arrays with Object. How can i do it? is ther any other easy solution to do like with the concept of serialization...
Here is my web service method.
public Object[] projects(string MangerName, string id)
{
string[] projectName = new string[1];
projectName[0] = "ProjectName";
projectName[1] = "ProjectShortName";
// Here is the logic to fill projectName array with "ProjectName" and "ProjectShortName"
Object[] AllProject = new Object[projectName.Count()];
AllProject = projectName;
return AllProject;
}
Thanks in advance
Darma
Thanks in advance
Darma
Riyaz AkhtarPosted Jul 23, 2013, 10:11 AM
Iftikar HussainPosted Jul 23, 2013, 8:47 AM
Regards,
Iftikar
darma tejaPosted Jul 23, 2013, 8:31 AM
Thanks for the reply. It is the requirement from the client. He want to get the object only. And he says me "you could serialize and send me as xml string and store it into object"
Darma
Iftikar HussainPosted Jul 23, 2013, 8:22 AM
Why you are returning object array instead of string array?
Regards,
Iftikar