JBoss Community

Remove CDATA from WS Response

created by Aurélien Lansmanne in JBoss Web Services - View the full discussion

Hello,

 

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,

 

Aurélien Lansmanne.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community