SOAPFactory factory = SOAPFactory.newInstance();
SOAPMessage message = msgFactory.createMessage();
message.getSOAPHeader().detachNode();
SOAPPart soapPart = message.getSOAPPart();
SOAPBody soapBody = soapPart.getEnvelope().getBody();
//Create the outer body element
String uddins = IRegistry.UDDI_V2_NAMESPACE;
Name bodyName = factory.createName(elem.getNodeName(),prefix,uddins);
SOAPBodyElement bodyElement = soapBody.addBodyElement(bodyName);
bodyElement.addNamespaceDeclaration(prefix,uddins);
appendAttributes(bodyElement, elem.getAttributes(), factory);
appendElements(bodyElement,elem.getChildNodes(), factory);
return message;
}