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 "lo ti (JIRA)" <ji...@apache.org> on 2007/02/24 02:08:05 UTC

[jira] Created: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

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: Blocker


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


[jira] Resolved: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe resolved AXIS2-2256.
--------------------------------------

    Resolution: Fixed

Ruchith has explained how to the property , so we can close this issue 

> 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


[jira] Commented: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Updated: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe updated AXIS2-2256:
-------------------------------------

    Priority: Critical  (was: Blocker)

> 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


[jira] Commented: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

Posted by "lo ti (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475800 ] 

lo ti commented on AXIS2-2256:
------------------------------

Hi Ruchith,
   
  Thanks a lot for your advice.  I am using a "request" scope for my service.  I try to storing the user name in the service context when at the inflow custom handler and then retrieving it in the outflow custom handler but it does NOT work.  
   
  If I store the user name in the server context in the "INIT()" method of a service, then I can retrieve it in the outflow custom handler.  This works fine with this.
   
  I really appreciate if you can provide a snippet of sample code of how to make it works based on your advice.
   
  I have another question is why when using a "request" scope for a service, the "DESTROY()" method does not fire?
   
  Thanks so much!!
  Loti
  

"Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org> wrote:
  
[ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475581 ] 

Ruchith Udayanga Fernando commented on AXIS2-2256:
--------------------------------------------------

How about storing the user name in the service context when at the inflow custom handler and then retrieving it in the outflow custom handler?

Thanks,
Ruchith


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



 
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.


> 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: Blocker
>
> 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


[jira] Commented: (AXIS2-2256) In OutFlow custom handler, is there a way to get a Principal info from InFlow in comming message?

Posted by "Ruchith Udayanga Fernando (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475581 ] 

Ruchith Udayanga Fernando commented on AXIS2-2256:
--------------------------------------------------

How about storing the user name in the service context when at the inflow custom handler and then retrieving it in the outflow custom 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: Blocker
>
> 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