I need to implement a Webservice that will be consumed by a client. In the response, there is an element
<myAwesomeElement> ... </myAwesomeElement>
that contains HTML. When call the Webservice from a client, I can see something like
<myAwesomeElement><[[CDATA <div>..some HTML... </div>]]></myAwesomeElement>
The problem is that the actual customer can't process CDATA, and asked me to remove them. I have absolutely no idea how to do that. I never specified Jboss to put CDATA tags in the response (even if it seems to be the right way to put HTML inside XML...).
Is there any solution? A special annotation in the generated stubs or the Webservice class? A "filter" that check for all inbound and outbound messages?
Thank you for your help,
I think the Cdata is not really present, but my test client (SOAP UI) add it to display a more readable response.
So the actual problem is to disable the XML escaping inside a element...