{
MessageFactoryImpl factory = new MessageFactoryImpl();
factory.setStyle(style);
ByteArrayInputStream inputStream = new ByteArrayInputStream(expXML.getBytes());
SOAPMessage soapMsg = factory.createMessage(null, inputStream);
SOAPEnvelope wasEnv = soapMsg.getSOAPPart().getEnvelope();
String wasXML = DOMWriter.printNode(wasEnv, false);
String wasBody = wasXML.substring(wasXML.indexOf("<env:Body>"));
wasBody = wasBody.substring(0, wasBody.indexOf("</env:Body>") + 11);