Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate XSD files for web service

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.

like image 866
buhtla Avatar asked Nov 14 '10 11:11

buhtla


2 Answers

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.

like image 148
Darin Dimitrov Avatar answered Sep 28 '22 23:09

Darin Dimitrov


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.

like image 34
Oded Avatar answered Sep 28 '22 22:09

Oded