[
https://issues.apache.org/jira/browse/AXIS2-5280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Veithen resolved AXIS2-5280.
------------------------------------
Resolution: Invalid
Not an issue; see mailing list for more information.
> 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
> Labels: patch
>
> 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: [email protected]
For additional commands, e-mail: [email protected]