Reputation: 89
Im am currenty working on some changes to a webservice (written in C# and VS). Now that most changes are done I need to generate myself a WSDL from the webservice so I can Import the WSDL on my other application to make the changes there.
The problem is that I have no clue how to generate the WSDL. Hope someone can help me out.
Upvotes: 3
Views: 5489
Reputation: 1126
"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\wsdl.exe" /language:CS /namespace:YourNameSpace /out:"G:\Work\YourFileName.cs" http://localhost/Service.asmx?wsdl
This should generate .cs (c#) file if you need to devlop "offline"
Upvotes: 0
Reputation: 118
Run the webservice and open it in a browser. Append "?wsdl" to the url, eg.:
http://localhost:524123/MyWebServeice?wsdl
You now have the wsdl document in your webbrowser. Now you can copy / paste.
Upvotes: 2