0 Replies Latest reply on Dec 6, 2011 12:10 PM by jhannah

    RestEasy strips namespace off returned XML

    jhannah Newbie

      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