Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 652
neeraj Avatar asked Apr 24 '13 07:04

neeraj


2 Answers

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.

like image 161
Prahlad Yeri Avatar answered Sep 19 '22 13:09

Prahlad Yeri


When viewing in a browser, View Source to get rid of the collapsible elements. Then copy/paste that into your favorite XML viewer/formatter if you want something legible.

like image 25
Jeff Magill Avatar answered Sep 18 '22 13:09

Jeff Magill