You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rumpa Giri <rg...@dentalxchange.com> on 2003/06/13 18:47:29 UTC

CDATA

Is there a way to tell AXIS not to escape the response,
instead put CDATA tags around?

Currently the response is something like:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
    <ns1:methodResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="someservice">
     <methodReturn xsi:type="xsd:string">ACME DENTAL &lt;
PLANS</methodReturn>
    </ns1:methodResponse>
   </soapenv:Body>
</soapenv:Envelope>

Is there a way to tell axis not to escape but to do the following?

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
    <ns1:methodResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="someservice">
     <methodReturn xsi:type="xsd:string">"><![CDATA[ACME DENTAL <
PLANS]]></methodReturn>
    </ns1:methodResponse>
   </soapenv:Body>
</soapenv:Envelope>

Any help will be much appreciated.
Regards,
Rumpa Giri