[jboss-user] [JBoss Web Services] - Remove CDATA from WS Response

Aurélien Lansmanne do-not-reply at jboss.com
Thu Mar 17 09:21:01 EDT 2011


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&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110317/85de629c/attachment.html 


More information about the jboss-user mailing list