Author: giovannip | Posted on: 10/7/2009 11:30:40 AM | Views : 275

 Hi,
     I was wondering if someone can help:  I am returning an array of custom objects from a WebMethod and all seems well.  The problem is this:  When I return a single instance of my class, the XML element namespace for each element is NOT included in the output.  On the other hand, if I were to return an array of that same class, the output includes the fully qualified namespace for each XML element.  Is this by design or am I doing something wrong.  I think its overkill to include the full namespace of each XML element when being output.  If its a single instance, all is well, if its an array of that same class, it returns the full namespaces.  Strange.
Is there a proper/standard method by which to return arrays of custom objects?  I am currently using an Array of strongly typed classes (Ex.: Client[]) which contain the "Serializable" attribute as well as a namespace.
  ...

Go to the complete details ...