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

Iftikar HussainRank #423 · 5.9K reputationPosted Jul 23, 2013, 4:22 AM EDT
Why you are returning object array instead of string array?
Regards,
Iftikar
darma tejaRank #3,199 · 449 reputationPosted Jul 23, 2013, 4:31 AM EDT
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 HussainRank #423 · 5.9K reputationPosted Jul 23, 2013, 4:47 AM EDT
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 23, 2013, 6:11 AM EDT