0

Given the following XSD used by Spring SOAP web services:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://ccc.jjj.nnn/verify/"
           targetNamespace="http://ccc.jjj.nnn/verify/" elementFormDefault="qualified">
...

</xs:schema>

the request and response classes used by the web services will reside in the following package structure:

- nnn
 - jjj
  - ccc
   - verify

Is there a way to override this and specify a different package hierarchy? It is not possible to change the XSD namespace itself, because this is already used in production, and changing it would impact the clients.

This was possible with WebSphere. In that technology, there was a mapping file which could include the following:

<package-mapping>
   <package-type>com.jjj.ws</package-type>
   <namespaceURI>http://ccc.jjj.nnn/verify<namespaceURI>
</package-mapping>

The classes exposed by the SOAP service would then reside in the following package structure:

- com
 - jjj
  - ws

Thanks

user1052610
  • 4,440
  • 13
  • 50
  • 101

0 Answers0