You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Plorks mail <pl...@hotmail.com> on 2005/05/12 11:32:25 UTC
envelope.addChild()
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/