Ask a Question related to ASP.NET Web Services, Design and Development.
-
Secret Squirrel #1
how to use get to embed schema into WSDL
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
Secret Squirrel Guest
-
Import XSD schema into WSDL
I have an XSD file supplied by a company. I have to interact with a webservice on their site but they didn't supply a WSDL. I generated my own... -
Microsoft wsdl Utility fails when multiple <schema> tags reference
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA... -
Typed Dataset schema not showing in WSDL
I have a simple typed dataset that is being returned by a WebMethod. When I use WSDL to query the webservice, the schema of the dataset is not being... -
How To control how WSDL generate schema for nested .NET classes ? (part 2)
Hi, I've got another issue about how WSDL handles nested classes. consider this type : Public Class CMPXQueryEnvResponse Public Envelope() As... -
How To control how WSDL generate schema for nested .NET classes ?
Hi, is there any attrubute I can place on the web service side to control how nested types are defined in the WSDL ? basically I'd like that such...



Reply With Quote

