JBoss Community

RestEasy strips namespace off returned XML

created by jhannah in JBoss Web Services - View the full discussion

I have some Web Services that do basic CRUD for an object.  The input into my create is an XML document represented by a JAXB annotated class.  I can execute the create and pass in the XML successfully:

 

<MyData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <MyDetails>blahblah</MyDetails>
</MyData>

 

The problem is that when I read the data after it has been stored, my response contains:

 

<MyData>
     <MyDetails>blahblah</MyDetails>
</MyData>

 

The client would like the response to be unchanged from the input.  Is anyone aware of how I would go about including the namespaces on the root element of the returned object?

 

Thanks,

 

jhannah

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community