darma teja

darma teja

  • NA
  • 496
  • 329.7k

return arrayData in xml format

Jul 23 2013 8:19 AM
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

Answers (4)