SoapMarshaler marshaler = new SoapMarshaler(true);
marshaler.setSoapUri(SoapMarshaler.SOAP_11_URI);
SoapMessage msg = new SoapMessage();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
marshaler.createWriter(msg).write(baos);
Node node = sourceTransformer.toDOMNode(new BytesSource(baos.toByteArray()));
assertNotNull(node);
Element root = ((Document) node).getDocumentElement();
assertEquals(SoapMarshaler.SOAP_11_URI, root.getNamespaceURI());
}