You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org> on 2007/03/25 08:32:32 UTC
[jira] Commented: (AXIS2-2256) In OutFlow custom handler, is there
a way to get a Principal info from InFlow in comming message?
[ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483908 ]
Ruchith Udayanga Fernando commented on AXIS2-2256:
--------------------------------------------------
Please try the following to get hold of the security processing results at the serverside-outflow handler:
//Get hold of the incoming msg ctx
MessageContext inMsgCtx;
if (opCtx != null
&& (inMsgCtx = opCtx
.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE)) != null
&& msgContext.getProperty(WSHandlerConstants.RECV_RESULTS) == null) {
Vector results = inMsgCtx.getProperty(WSHandlerConstants.RECV_RESULTS);
}
This is done at the RampartSender handler. And the results are available in the message context (service-outflow) under the key WSHandlerConstants.RECV_RESULTS. Therefore if you place a handler after RampartSender you will be able to access the results vector the same way you access it in the inflow. But you will not be able to do this since RampartSender is specified to be the last handler of the security phase which is the last phase. Therefore I recommend you to do the above in your own custom outflow handler.
Thanks,
Ruchith
> In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?
> -------------------------------------------------------------------------------------------------
>
> Key: AXIS2-2256
> URL: https://issues.apache.org/jira/browse/AXIS2-2256
> Project: Axis 2.0 (Axis2)
> Issue Type: Wish
> Affects Versions: 1.1.1
> Environment: Windows xp, tomcat 5.5
> Reporter: lo ti
> Priority: Critical
>
> I want to track and limit the user usage for per service and operation. In InFlow custom handler, I can get the user name (Rampart security) but in OutFlow custom handler I can not get this user name. Is there a way to get this information in OutFlow custom handler?
> Thanks in advance!!
> Loti
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org