title: How to add CDATA section to SOAPMessage using SAAJ?
body: <p>I'm trying to add a cdata section to a soap message using saaj (axis2-saaj-1.5.4). I have an xml document which I would like to define as a cdata section and put it into an element inside the body of a soap document... something like the following (although this causes compiler errors):</p>
  
  <pre><code>Element cdataElem = doc.createElement("cdata");
  CDATASection cdata = doc.createCDATASection(xmlDocAsString);
  cdataElem.appendChild(cdata);
  
  SOAPMessage message = factory.createMessage();
  soapMessage.getSOAPBody().addChildElement(cdataElem);
  </code></pre>
  
  <p>I can't find a way to do this properly and I'm sure it should be simple... can anyone help?</p>
  
  <p>Thanks</p>