use of com.sun.xml.ws.message.StringHeader in project metro-jax-ws by eclipse-ee4j.
the class StringHeaderTest method test2.
public void test2() throws SOAPException, IOException {
Header h = new StringHeader(AddressingVersion.W3C.actionTag, "http://example.com/action");
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage message = factory.createMessage(new MimeHeaders(), new ByteArrayInputStream(TEST_MESSAGE.getBytes()));
h.writeTo(message);
}
Aggregations