CDATA Tags do not seem to be working with JBoss EAP 6
Issue
- With EAP 5 the soap request have used CDATA to send line breaks etc. but this stops working when migrating to EAP6.
- Now with EAP6, the CDATA tags are not properly parsed and return pain single line.
- For Example, this soap request fired is below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:n2="urn:some:cast:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:n1="urn:example:com:1.1">
<soapenv:Header/>
<soapenv:Body>
<viral:invokeMessage xmlns:whis="http://www.mysite.com">
<arg0>
<mappingId>testmapping</mappingId>
<type>Live</type>
<referenceId>10</referenceId>
<to>
<address channel="">6100XXXXXXXXXXX</address>
</to>
<subject>WSDL SMS TEST</subject>
<alert>
<body></body>
</alert>
<sms>
<to>61400XXXXXXXXXXX</to>
<body><![CDATA[Testing]]></body>
</sms>
</arg0>
</viral:invokeMessage>
</soapenv:Body>
</soapenv:Envelope>
- The soap response as retuned is,
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:invokeMessageResponse xmlns:ns2="http://www.mysite.com"><return><MessageResult><ReferenceId>gqa</ReferenceId><messageId>133</messageId><Status><StatusCode>OK</StatusCode><StatusMessage>Accepted</StatusMessage><SubmittedTime>2013-12-20T08:25:30.691+11:00</SubmittedTime></Status></MessageResult></return></ns2:invokeMessageResponse></S:Body></S:Envelope>
- The CDATA is getting removed from the SOAP dump.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- JBossWS-CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.