Hi Sergey,

Thanks for your feedback. I will try out with the suggestions you have
provided.

Regards
Saravanan R



Sergey Beryozkin-2 wrote:
> 
> Hi
> 
> there're few options, see [1], just fixed few typos...
> 
> 1. register a custom JAXBElementProvider's outTransformElements. Ex, if
> you have
> <ns1:books xmlns:ns1="http://books"/>
> 
> going on the wire then you can can have the following pair in
> outTransformElements :
> 
> {http:books}books : books
> // and for other elements if needed
> 
> This will instruct the provider to drop the namespace and thus the prefix.
> 
> 2. Register XSLTJaxbProvider with a trivial stylesheet stripping the ns.
> In XSLT you will likely have the ns declaration preserved 
> though on the top level element but the instance will be unqualified.
> 
> 3. Write a simple XMLStreamWriter blocking the namespace write...
> 
> cheers, Sergey
> 
> 
> [1]
> http://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS#JAX-RS-CustomizingJAXBXMLandJSONinputandoutput
> 
>>
>> Hi Experts,
>>
>> I have a scenario that the application calls the webservice client and
>> the
>> result is rendered using JAX RS.
>>
>> I have created webservice client using wsdl2java, the generated files
>> having
>> the response bean.
>>
>> When I call the webservice , I can able to get the response and  tried to
>> use JAXB for rendering XML output.
>>
>> The output xml contains namespace prefix such as ns1,ns2 etc.
>>
>> Is there any way to stip down the namespace generated by JAXB.
>>
>> Please provide the suggestion for this scenario.
>>
>> Thanks in advance.
>>
>> Regards
>> Saravanan Ramamoorthy
>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/How-to-strip-down-the-namespace-generated-by-JAXb-tp27358513p27358513.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/How-to-strip-down-the-namespace-generated-by-JAXb-tp27358513p27374215.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to