Return a custom type from a web service
Hi, I have a Collection, and I have a webmethod to return it, In the declaration of the method Y put:
[WebMethod]
[XmlInclude(typeof(myCollection))]
[XmlInclude(typeof(myClass))]
[XmlInclude(typeof(myClass2))]
public void myCollection Get() {
}
the web service return the collection but, it is an array of any type, in my client I can't manipulate that data I recieve the data in an object array, I don't able to use the properties of the objects.
what can I do?, thanks for u help!!!!!
|