SOAPEnvelope soapEnvelope = (SOAPEnvelope) omBuilder.getDocumentElement();
SOAPHeader soapHeader = omFactory.createSOAPHeader(soapEnvelope);
assertTrue(
"Programatically created SOAPHeader should have done = true ",
soapHeader.isComplete());
soapHeader.detach();
SOAPHeader soapHeaderTwo = omFactory.createSOAPHeader(soapEnvelope,
omBuilder);
assertTrue(
"SOAPHeader with a builder should start with done = false ",
!soapHeaderTwo.isComplete());