try {
//SOAP1.2 does not allow trailing blocks after the Body
//Call SOAPEnvelope.addChildElement() and (expect SOAPException)
Name elementAfterBody = envelope.createName("AfterBody", "e", "some-uri");
envelope.addChildElement(elementAfterBody);
fail("Did not throw expected SOAPException");
} catch (SOAPException e) {
//Did throw expected SOAPException"
} catch (Exception e) {
fail("Unexpected Exception: " + e.getMessage());