How to get the wsdl file from a webservice's URL

Alfergon picture Alfergon · Dec 23, 2013 · Viewed 336.9k times · Source

I want to get the WSDL file for a webservice and the only thing I have is its URL (like webservice.example/foo).

If I use the URL directly only an error response is delivered.

Answer

Alfergon picture Alfergon · Dec 23, 2013

By postfixing the URL with ?WSDL

If the URL is for example:

http://webservice.example:1234/foo

You use:

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

And the wsdl will be delivered.