Search in sources :

Example 11 with StringHeader

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);
}
Also used : MimeHeaders(jakarta.xml.soap.MimeHeaders) StringHeader(com.sun.xml.ws.message.StringHeader) Header(com.sun.xml.ws.api.message.Header) StringHeader(com.sun.xml.ws.message.StringHeader) MessageFactory(jakarta.xml.soap.MessageFactory) ByteArrayInputStream(java.io.ByteArrayInputStream) SOAPMessage(jakarta.xml.soap.SOAPMessage)

Aggregations

StringHeader (com.sun.xml.ws.message.StringHeader)11 Header (com.sun.xml.ws.api.message.Header)6 SOAPMessage (jakarta.xml.soap.SOAPMessage)5 WSEndpointReference (com.sun.xml.ws.api.addressing.WSEndpointReference)3 RelatesToHeader (com.sun.xml.ws.message.RelatesToHeader)3 ByteArrayInputStream (java.io.ByteArrayInputStream)3 QName (javax.xml.namespace.QName)3 MessageHeaders (com.sun.xml.ws.api.message.MessageHeaders)2 SAAJMessageHeaders (com.sun.xml.ws.api.message.saaj.SAAJMessageHeaders)2 MessageFactory (jakarta.xml.soap.MessageFactory)2 NotNull (com.sun.istack.NotNull)1 WsaPropertyBag (com.sun.xml.ws.addressing.WsaPropertyBag)1 Message (com.sun.xml.ws.api.message.Message)1 WSBindingProvider (com.sun.xml.ws.developer.WSBindingProvider)1 StreamHeader11 (com.sun.xml.ws.message.stream.StreamHeader11)1 MimeHeaders (jakarta.xml.soap.MimeHeaders)1 WebServiceException (jakarta.xml.ws.WebServiceException)1 ArrayList (java.util.ArrayList)1 XMLStreamException (javax.xml.stream.XMLStreamException)1 XMLStreamReader (javax.xml.stream.XMLStreamReader)1