简体   繁体   中英

Using XSD file in WSDL

We have WSDL and XSD files given to us,

Now how can we use that given XSD in WSDL, without adding manually all XSD elements in WSDL. do we have something by which we can directally import xsd file to WSDL?

Suggestion are welcome.

XSD is the schema of your object you will be sending to you web service. Use command line below to create a serialized object from you XSD file. For example, lets assume your language is C#, and your web service is SendData()

xsd.exe -c -l:c# -n:XmlSerializationHowTo yourobject.xsd

This will create a class file called yourobject.cs In you code, reference your web service, and call SendData(yourobject); Note, you can also create sample xml from your xsd and vise versa.

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