I need to create web service (.NET) which will be used by other system. In order for them to implement logic which will use my web service, I need to send them wsdl and XSD files for my web service.
WSDL file is not a problem, I will obtain it from .asmx page by passing wsdl parameter. But how can I generate appropriate XSD files for my web service? Can I use XSD.exe tool and pass it .wsdl file as parameter, or is there another way?
Thanks in advance.
You could use the disco.exe utility which allows you to save the wsdl and xsd files on disk so that those files could be used to generate a client proxy without having access to the WSDL web address.
If you are using the Pro edition of visual studio (and above), when opening a XML file you will find an XML menu, with an item that will generate an XSD from it (Create Schema). I believe it uses xsd.exe
under the hood though.
See MSDN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With