By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Empty DataSet in Client

P: n/a
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>
Mar 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
List<type> will just return an array of type... that's normal.

What web service version are you using? .net 1.x, .net 2.0? with
wse1,2,3? wcf?

Mar 22 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.