Title: Server Side Handlers and Setting SOAP Headers...

I am trying to add a header to the request/response when my service is invoked.

How do I know when the pivot occurs or do I really need to care.

I have tried:

    Message message = MessageContext.getCurrentContext().getCurrentMessage();    
    SOAPEnvelope envelope = message.getSOAPEnvelope();
    envelope.addHeader(new SOAPHeaderElement("TestNS", "Test", "12345"));

I checked the archives and saw lots on information on client headers, but nothing particularly on this.

Reply via email to