SAINI, Nishant, IDC wrote:
Hi,

I got the header set from client at server by using the following code:

    public InvocationResponse invoke(MessageContext mc) throws AxisFault {
        org.apache.axiom.soap.SOAPEnvelope env =  mc.getEnvelope();
        SOAPHeader header = env.getHeader();
        
if(mc.getOptions().getTo().getAddress().endsWith("services/SimpleService")) {
            Iterator iter = header.examineAllHeaderBlocks();
            while(iter.hasNext()) {
                SOAPHeaderBlock headerBlock = (SOAPHeaderBlock) iter.next();
                System.out.println(headerBlock);
                }
            }
        }
        InvocationResponse ir = InvocationResponse.CONTINUE;
        return ir;
    }

Can anybody please tell me how can I set the header block in response from 
server so that I can access it from client?
You have to write a handler and deploy that in the out flow. So that your handler will do what you want to do. - Get the SOAP message from the message context and then add your header there.

Thank you!
Deepal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to