axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Stromas (Created) (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message