Aurélien Lansmanne [
http://community.jboss.org/people/alansmanne] created the discussion
"Remove CDATA from WS Response"
To view the discussion, visit:
http://community.jboss.org/message/593762#593762
--------------------------------------------------------------
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
[
http://community.jboss.org/message/593762#593762]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]