Hello,

I am trying to implement a handler which can add a header element to 
fault messages.

What I implemented is:
public void invoke(MessageContext context) {
    try {
        // Normal operation...
    } catch (AxisFault fault) {
        Message mes = new Message(fault);
        // Add header to the message...
        context.setResponseMessage(mes);
        throw fault;
    }
}

However, returned message does not contain the header which my code 
has added. I suspect that Axis engine overwrites my message with the 
one which the engine has created.

Does anyone has suggestions or comments? Thank you very much in 
advance.

-- 
Satoshi Makino mailto:[EMAIL PROTECTED]

Reply via email to