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

wsdl

Solution

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.

Problem

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.

Original source