axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Stromas (Created) (JIRA)" <>
Subject [jira] [Created] (AXIS2-5280) No SOAP headers can be retrieved in server code
Date Tue, 27 Mar 2012 14:02:32 GMT
No SOAP headers can be retrieved in server code

                 Key: AXIS2-5280
             Project: Axis2
          Issue Type: Bug
          Components: Addressing
    Affects Versions: 1.6.1
         Environment: Windows 7 Enterprise
JDK 1.6
            Reporter: Aaron Stromas

Server side method executes the following code in order to retrieve SOAP headers, which include
a custom header. The SOAPMonitor applet shows that the custom header is present among the
SOAP headers.

MessageContext ctx = MessageContext.getCurrentMessageContext();                          
OperationContext opctx = ctx.getOperationContext();
try {
                MessageContext msgctx = opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
                AxisMessage message = msgctx.getAxisMessage();
                 ArrayList headers = message.getSoapHeaders();
} catch (AxisFault e) {
                log.debug("Failed getting incoming message context", e);

The list "headers" is of size 0, i.e., no headers are retrieved

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message