Hi Sergey, I tried upgrading to cxf 2.5 and use the defaultNamespace. It didn't work, the namespaces aren't being generated but the prefixes are getting generated.
I managed to fix my issue use a custom PhaseInterceptor and a DelegatingXMLStreamWriter. I had to override two methods from DelegatingXMLStreamWriter i) writeStartElement - where I removed the prefix before calling the super method and added an attribute with xmlns:uri ii) writeNamespace - doing nothing and returning, so that prefixes are not written. Thank you very much for your suggestion about using the custom writer. Thanks, Kiran Sireesh -- View this message in context: http://cxf.547215.n5.nabble.com/Remove-namespace-prefixes-in-JAX-RS-tp5713618p5713683.html Sent from the cxf-user mailing list archive at Nabble.com.
