1 Reply Latest reply on Mar 17, 2011 11:58 AM by Aurélien Lansmanne

    Remove CDATA/escaping from WS Response

    Aurélien Lansmanne Newbie

      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.