简体   繁体   中英

How to generate WSDL for web service returning XMLDocument

I have a WebMethod returning a XMLDocument to export data to an external system. This is all fine, but the external system is trying to access the WSDL of the response to import the XML information (nullable types, etc).

When they look at the WSDL it doesn't give any details regarding the XML format, probably because the XML is dynamically generated.

So my question is, is it possible to generate a useful WSDL for a webservice method returning a dynamically generated XMLDocument?

maybe you can use SoapHttpClientProtocol.Discover Method ()

please ref msdn samples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM