axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AXIS2-5280) No SOAP headers can be retrieved in server code
Date Wed, 28 Mar 2012 18:57:28 GMT

     [ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message