3

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.

3
  • possible duplicate of How to get the wsdl file from a webservice's URL Commented Nov 26, 2014 at 14:58
  • webservicename ?wsdl Commented Nov 26, 2014 at 14:58
  • If its a WCF or asmx SOAP service the WSDL will be automatically generated if you access the service url with ?swdl e.g. http://yoursite/someservice.svc?wsdl Commented Nov 26, 2014 at 14:59

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0
"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"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.