Hello All

I'm trying to add a request header to the response header but not sure how to do it. Please can someone help?

I'm exposing a web service method that a 'client' calls which adds a custom header. Then every call the 'client' makes i have to check the value within that header


I've got this

MessageContext context = MessageContext.getCurrentContext();
Message requestMessage = context.getRequestMessage();
Message responseMessage = context.getResponseMessage();
SOAPEnvelope envelope = responseMessage.getSOAPEnvelope();
SOAPHeaderElement receivedHeader = requestMessage.getSOAPEnvelope().getHeaderByName("", "MyHeader");
I know i need to use something like this envelope.addChild();


Any help much appreciated

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Reply via email to