Hi Kiran
On 06/09/12 11:21, sireesh wrote:
Hi Sergey,
Thank you for your suggestion.
I tried using 'outTransformElements' as below:

outTransformMap.put("{my.namespace.Core}*", "*");

This completely removes the namespace as well as the prefix. But, I would
like to have namespaces but without any prefixes like:
<AuthenticateRequest xmlns="my.namespace">
         <Header xmlns="my.namespace.Core">value
         </Header>
</AuthenticateRequest>


This is partially supported with an 'outDefaultNamespace' property, but it can only be used to handle a single namespace, if, given the example above, it is only 'my.namespace.Core', then it should work. Alternatively, assuming it's always "my.namespace" and "my.namespace.Core" then you can just get two TransformOutInterceptors, a hack but should work.

Guess we can support 'outDefaultNamespace' containing multiple namespaces...

Cheers, Sergey

Thanks,
Kiran Sireesh



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Remove-namespace-prefixes-in-JAX-RS-tp5713618p5713645.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to