Search code examples
web-serviceswsdl

Is it mandatory to have a WSDL definition accessible using ?wsdl?


Is it mandated by any standard that a web service should provide a WSDL by appending ?wsdl to the endpoint address?

Is it OK if the WSDL is hosted at a different URL (without appending ?wsdl)?

For example:

Endpoint: http://abc.xyz.com/MyService
WSDL:     http://abc.xyz.com/MyServiceDefinition.pqr

Note that I'm even using a different extension for the WSDL definition.

Does using this approach violate any standards or one can host the thing the way they want?


Solution

  • No, Its not mandatory to have ?wsdl access, but its recommended way. Its worth noting that most clients will try to append "?wsdl" to your URL and will try to access WSDL file, Hence its highly recommended to setup it.