P
plork123
Hello All
I'm trying to add a request header to a response header using
envelope.addChild (blaa);
I'm not too sure how to do it.
What i want to do is a 'client' will call a web service method to add a
soap header. Then every other call the 'client' makes i want to make
sure the value in the header is valid
Can anyone help
Many Thanks
I'm getting the request/response MessageContext like this
MessageContext context = MessageContext.getCurrentContext();
Message requestMessage = context.getRequestMessage();
Message responseMessage = context.getResponseMessage();
SOAPEnvelope envelope = responseMessage.getSOAPEnvelope();
SOAPHeaderElement receivedHeader =
requestMessage.getSOAPEnvelope().getHeaderByName("", "MyHeader");
Then getting the value within the header
if (receivedHeader != null)
{
headerElementValue = (String)receivedHeader.getValue();
......
I'm trying to add a request header to a response header using
envelope.addChild (blaa);
I'm not too sure how to do it.
What i want to do is a 'client' will call a web service method to add a
soap header. Then every other call the 'client' makes i want to make
sure the value in the header is valid
Can anyone help
Many Thanks
I'm getting the request/response MessageContext like this
MessageContext context = MessageContext.getCurrentContext();
Message requestMessage = context.getRequestMessage();
Message responseMessage = context.getResponseMessage();
SOAPEnvelope envelope = responseMessage.getSOAPEnvelope();
SOAPHeaderElement receivedHeader =
requestMessage.getSOAPEnvelope().getHeaderByName("", "MyHeader");
Then getting the value within the header
if (receivedHeader != null)
{
headerElementValue = (String)receivedHeader.getValue();
......