I have a server and client that are fairly mature and stable and use
spring-ws and JAXB for the server interface.
Recently I obfuscated my server code and now the server boots up normal
but when it gets a request from a pre-existing client it gives an error
during unmarhsaling in the server side.
The Error indicates that binding classes for some but not all packages
are being expected without a namespace when there should be a namespace.
See simplified example:
org.springframework.ws.soap.client.SoapFaultClientException: JAXB
unmarshalling exception: unexpected element (uri:"urn:acme:sampleNS",
local:"SampleRequest"). Expected elements are
<{
http://www.w3.org/2005/08/addressing}Action>,<{}SampleRequest>,<{}SampleResponse>,....
Its clear that the obfuscation messed something when the JAXB binding
generated code was processed.
Can any one hazard a guess as to what will cause the JAXBContext to drop
the namespace on some packages and not others?
Thanks for your help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com