"e1", "World"));
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.newDocument();
Element cdataElem = doc.createElementNS("urn:foo", "e3");
CDATASection cdata = doc.createCDATASection("Text with\n\tImportant <b> whitespace </b> and tags! ");
cdataElem.appendChild(cdata);
input[2] = new SOAPBodyElement(cdataElem);
for(int i=0; i<input.length; i++) {
body.addChildElement(input[i]);
}
ByteArrayInputStream bais = new ByteArrayInputStream(env.toString().getBytes());
SOAPEnvelope env2 = new org.apache.axis.message.SOAPEnvelope(bais);
Iterator iterator = env2.getBody().getChildElements();
Element element = null;
for(int i=0;iterator.hasNext();i++) {
MessageElement e = (MessageElement) iterator.next();
element = e.getAsDOM();
}
String xml = element.getFirstChild().getNodeValue();
assertEquals(xml, cdata.getData());
}