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.



Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications
 
Submitted comments will be subject to moderation before being displayed.
 

About

My name is Mike Haller and I'm a software developer and architect at Bosch Software Innovations in Germany. I love programming, playing games and reading books. I like good food, making photos and learning and mentoring about the craftsmanship of commercial software development. Stack Overflow profile for mhaller

Quicksearch