Folks - i have a WebMethod that returns a List<> of "Person" objects. I
implement IXmlSerializable to write the xml for the object.
I don't touch SOAP or web services within any of my objects.
My client doesn't have a typed proxy so it just gets back an array[] of
plain datasets apparently.
When i check these datasets they are completely empty. I can get this
working when testing the asmx through the browser using and i can also get
the result when i use a WebRequest and just use POST.
Any ideas what i am missing? Am i screwing something up because i serialize
the objects myself? I would expect that the SOAP serialization wouldn't care
how i serialize the objects myself, but i just wonder whether because the
result is a series of Xml fragments whether something is breaking.
The SOAP response looks as follows (according to the browser auto-generated
asmx test interface) :
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetMessagesResponse xmlns="http://myuri.com/">
<GetMessagesResult>
<Person>
<xsd:schema>schema</xsd:schema>xml</Person>
<Person>
<xsd:schema>schema</xsd:schema>xml</Person>
</GetMessagesResult>
</GetMessagesResponse>
</soap12:Body>
</soap12:Envelope>