SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
SOAPHeader header = soapEnv.getHeader();
SOAPBody body = soapEnv.getBody();
assertTrue(header.addChildElement("ebxmlms1", "ch2",
"http://test.apache.org") instanceof SOAPHeaderElement);
assertTrue(header.addHeaderElement(
soapEnv.createName("ebxmlms2", "ch3", "http://test2.apache.org")) != null);
assertTrue(header.addHeaderElement(
new PrefixedQName("http://test3.apache.org", "ebxmlms3", "ch5")) != null);