jhannah [http://community.jboss.org/people/jhannah] created the discussion

"RestEasy strips namespace off returned XML"

To view the discussion, visit: http://community.jboss.org/message/640112#640112

--------------------------------------------------------------
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 
http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd=" 
http://www.w3.org/2001/XMLSchema 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
[http://community.jboss.org/message/640112#640112]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to