axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18048] New: - Header elements cannot be added to Fault messages
Date Mon, 17 Mar 2003 02:18:41 GMT
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.

Mime
View raw message