[
https://issues.apache.org/jira/browse/CXF-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683439#action_12683439
]
Vincenzo Vitale commented on CXF-1089:
--------------------------------------
Hi,
HTML code is returned in the response object being returned by the service.
And I get:
<response>
<result xmlns:ns3="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:string">
<a href="my-href" alt="my-tooltip" border="0"/></a>
</result>
</response>
But I would prefer something like this:
<response>
<result xmlns:ns3="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:string">
<![CDATA[<a href="my-href" alt="my-tooltip" border="0"/></a>]]>
</result>
</response>
here a thread about this:
http://mail-archives.apache.org/mod_mbox/cxf-users/200710.mbox/<[email protected]>
BTW, looking at this:
http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-JAXBsupport
now what I need can probably be done with an Object factory. Is this correct?
> Rest services String response into a CDATA section.
> ---------------------------------------------------
>
> Key: CXF-1089
> URL: https://issues.apache.org/jira/browse/CXF-1089
> Project: CXF
> Issue Type: Improvement
> Components: REST
> Reporter: Vincenzo Vitale
>
> Exposing a rest service (using annotation) the String result values are
> escaped. It would be nice to have the possibility to include these values in
> a CDATA section, in the same way it's done with the same service exposed
> using Soap.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.