SOAPEnvelope env = new SOAPEnvelope();
env.addNamespaceDeclaration("xsi", "http://www.w3.org/1999/XMLSchema-instance");
env.addNamespaceDeclaration("xsd", "http://www.w3.org/1999/XMLSchema");
//build the body
Name bodyName = env.createName(BODYELEMENT, "x", URN);
SOAPBodyElement body = new SOAPBodyElement(bodyName);
//set the format to soap2
Element e = XMLUtils.StringToElement("", "format", "soap2");
SOAPElement sbe = new SOAPBodyElement(e);