Hi,

So we have a web method, GetOrders(). GetOrders() internally gets a
typed dataset, and then converts it to XML (it might be an
XmlDataDocument instead of a typed dataset, not sure), and then returns
it. The XML returned by GetOrders() shows up in the generated WSDL as
just a XmlNode - no structure. We have XSD schema file for this XML. We
would like to include information about the structure of the XMLNode in
the WSDL so that a client can simply "Update Web Reference" to get a
proxy that will match the .XSD. How can we do that?

I tried creating a class that extends XmlNode, and giving it an
attribute like this:

[XmlType(Namespace = "http://localhost/MyProject/My.xsd",
TypeName = "MyType")]

The result was that the xml type got pulled onto the client, but no
special proxy file is generated.

I can of course return the typed dataset as a parameter itself, rather
than converting to XML, but there seems to be a lot of overhead with
that.

I can generate a nice clean proxy file from the XSD itself, for just
the XSD... Is there any way that I can get the web service client to
generate a nice clean class file as a proxy that matches the XSD?

In a nutshell, how can a web service client return a XML document in
such a way that the web service client sees a business object instead
of a xml document?

Thanks,

Jon Paugh