You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/03/17 03:18:41 UTC

DO NOT REPLY [Bug 18048] New: - Header elements cannot be added to Fault messages

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18048>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18048

Header elements cannot be added to Fault messages

           Summary: Header elements cannot be added to Fault messages
           Product: Axis
           Version: current (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: mak0702@trl.ibm.com


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.