XSD vs WSDL namespace
Posted by Mike Haller
on Thursday, February 14. 2008
at 07:59
in Java
This is a follow up to Playing with Spring WS:When defining the target namespaces, be aware of the following passage in the Spring-WS tutorial:
We start our WSDL with the standard preamble, and by importing our existing XSD. To separate the schema from the definition, we will use a separate namespace for the WSDL definitions: http://mycompany.com/hr/definitions.
The importance is that you use different namespaces for your XML Schema and for your WSDL target namespace. If they're both the same, the endpoint mapper won't find your endpoints.
Thanks Marco for pointing to the documentation. We tried half an hour to make it work with the same namespace and then decided to use separate namespaces. Then it worked.
