How to generate a WSDL file of a web service in Visual Studio

neeraj picture neeraj · Apr 24, 2013 · Viewed 50.5k times · Source

I have inventory application in .NET which is going interoperate with Salesforce.

How to generate WSDL file of a web service, I was told that Visual Studio automatically create it and also told that it was not created physically if it is then how to export it to remote machine to access if WSDL.exe command do it with asmx file, what is the exact location where it should be fired.

Please suggest If i am missing any link.

Answer

Prahlad Yeri picture Prahlad Yeri · Apr 24, 2013

Nothing special needs to be done to generate the WSDL to your webservice. Just postfix your Webservice url with "?WSDL" and you will get it. For example:

http://localhost/HelloService.asmx?WSDL

Once you do that, save the WSDL as an XML file and add it as web-reference to your client .NET application where you want to call it.