How to create a wsdl file

The simplest option is to navigate to the web service url in the browser and add a querystring parameter wsdl to it.
example: http://localhost:1831/Service1.asmx?wsdl
And the wsdl will be emitted on the browser.
The other way is to use the disco.exe utility.
example: disco /o:C:\outputdir http://localhost:1831/Service1.asmx
to run disco open the visual studio command prompt.
the syntax is disco.exe options urlToDiscover
/o or /out specifies the output directory to save the discovered documents in. The default is the current directory.


One Response to “How to create a wsdl file”

  1. Cool Says:

    Thanks a lot 🙂 Saved my time!!!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: