users@jersey.java.net

entities encoding issues in the response

From: Arul Dhesiaseelan <arul_at_fluxcorp.com>
Date: Wed, 14 May 2008 09:19:02 -0600

Hi,

My REST method returns @ProduceMime({"application/xml"}). Inside the
method, I am using JAXB to construct the XML response. One of the nodes
in the XML has an embedded CDATA string.
When I invoke this method, I do not see the CDATA entities properly
encoded. I see &lt;, &gt;, &quot instead of <, >, ". I see the browser
can handle this response just fine. But, the consumer of this method is
a different application.

Is there a way to configure this in the REST method? Or, do we need to
have this decoding logic in the consumer?

Please advice.

Thanks!
Arul