// inputWrapper.setParent(inputWrapper.getTarget().getParent()); // make
// sure wrapper has right parent
{
XmlElement xmlEl = (XmlElement) inputMessage;
XmlContainer top = xmlEl.getRoot();
String xmlAsStr = XMLUtil.BUILDER3.serializeToString(top);
System.out.println(xmlAsStr);
// Object top2 = inputWrapper.getRoot();
// System.out.println(XMLUtil.BUILDER3.serializeToString(top2));
}
{ // required for my addder ...
XmlDocument doc = (XmlDocument) (((XmlElement) inputMessage)
.getRoot());
XmlElement env = doc.getDocumentElement();
XmlElement header = env.element(env.getNamespace(), "Header");
if (header == null) {
header = env.newElement(env.getNamespace(), "Header");
env.addElement(0, header);
}
header.addElement(LeadContextHeader.NS, LeadContextHeader.TYPE
.getLocalPart());
}
boolean success = operation.executeRequestResponseOperation(
inputMessage, outputMessage, faultMessage);
{
XmlElement xmlEl = (XmlElement) inputMessage;
XmlContainer top = xmlEl.getRoot();
String xmlAsStr = XMLUtil.BUILDER3.serializeToString(top);
System.out.println(xmlAsStr);
// Object top2 = inputWrapper.getRoot();
// System.out.println(XMLUtil.BUILDER3.serializeToString(top2));
}