How to get wsdl file from web service url

I want to get a WSDL file for a web service, and the only thing I have is its URL (e.g. webservice.example / foo).

If I use the URL, only the error response is sent.

+62
wsdl
Dec 23 '13 at 11:27
source share
4 answers

Posterify the URL with ?WSDL

If the url, for example:

 http://webservice.example:1234/foo 

You're using:

 http://webservice.example:1234/foo?WSDL 

And wsdl will be delivered.

+92
Dec 23 '13 at 11:27
source share

to get the WSDL ( Web Service Description Language ) URL of the web service.

You can use SOAP web services:

 http://www.w3schools.com/xml/tempconvert.asmx 

to get WSDL, we need to add ?WSDL , for example:

http://www.w3schools.com/xml/tempconvert.asmx? Wsdl

+19
Aug 27 '15 at 23:11
source share

The only thing you can get is WSDL if the web service is configured to deliver it. To do this, you need to specify serviceBehavior and enable httpGetEnabled:

 <serviceBehaviors> <behavior name="BindingBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> </behavior> </serviceBehaviors> 

If the web service is only available through https, you need to enable http s GetEnabled instead of httpGetEnabled.

+8
Jun 22 '17 at 7:08
source share

To download wsdl from a URL using the developer command line for Visual Studio , run it in administrator mode and enter the following command:

  svcutil /t:metadata http://[your-service-url-here] 

Now you can use the loaded wsdl in your project as you wish.

0
Jan 10 '19 at 11:28
source share



All Articles