is possible in JAX-WS to generate xmlns attributes instead of prefixes?
Example: Object A from package myns.a contains some objects B1, B2 from package myns.b. Generated SOAP message:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="urn:myns/a" xmlns:b="urn:myns/b">
<soapenv:Header/>
<soapenv:Body>
<a:A1>
<b:B1>123456</b:B1>
<b:B2>abc</b:B2>
</a:A1>
</soapenv:Body>
</soapenv:Envelope>
However, i need to generate it this way (so prefix b should be removed and all objects from package myns.b should have xmlns attribute):
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="urn:myns/a">
<soapenv:Header/>
<soapenv:Body>
<a:A1>
<B1 xmlns="urn:myns/b">123456</B1>
<B2 xmlns="urn:myns/b">abc</B2>
</a:A1>
</soapenv:Body>
</soapenv:Envelope>
Is there a simple way, how to handle this? For example on package-info.java level?
I solved this using custom SOAPHandler and removing prefixes from element in urn:myns/b namespace.
Simplified snippet: