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 "Stephan Gloor (JIRA)" <ji...@apache.org> on 2007/03/24 11:22:32 UTC

[jira] Created: (AXIS2-2380) Session scope not working

Session scope not working
-------------------------

                 Key: AXIS2-2380
                 URL: https://issues.apache.org/jira/browse/AXIS2-2380
             Project: Axis 2.0 (Axis2)
          Issue Type: Test
          Components: deployment
    Affects Versions: 1.1.1
         Environment: Windows XP Service Pack2, Axis2 running as server, java 1.5.0_05
            Reporter: Stephan Gloor
            Priority: Blocker


<service name="WeatherService" scope="soapsession"> ....

doesn't work, when using the following code fragment:
 
------------------------------------------------------------------------------------
RPCServiceClient serviceClient = 
new RPCServiceClient(); 
Options options 
= serviceClient.getOptions(); 
options.setManageSession(true); 
... 
serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); 
------------------------------------------------------------------------------------

 
the init method of the service is called every time the client executes invokeRobust on the same serviceClient instance.

Thanks and kind regards, Stephan Gloor, Webservices Teacher, Switzerland

ps. would be glad to know, if this is an 1.1.1 issue - so switching to a previous version would help.





-- 
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-2380) Session scope not working

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

Deepal Jayasinghe updated AXIS2-2380:
-------------------------------------

    Priority: Major  (was: Blocker)

No point of keeping this as a blocker , since that is how Axis2 has designed to work


> Session scope not working
> -------------------------
>
>                 Key: AXIS2-2380
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2380
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Test
>          Components: deployment
>    Affects Versions: 1.1.1
>         Environment: Windows XP Service Pack2, Axis2 running as server, java 1.5.0_05
>            Reporter: Stephan Gloor
>
> <service name="WeatherService" scope="soapsession"> ....
> doesn't work, when using the following code fragment:
>  
> ------------------------------------------------------------------------------------
> RPCServiceClient serviceClient = 
> new RPCServiceClient(); 
> Options options 
> = serviceClient.getOptions(); 
> options.setManageSession(true); 
> ... 
> serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); 
> ------------------------------------------------------------------------------------
>  
> the init method of the service is called every time the client executes invokeRobust on the same serviceClient instance.
> Thanks and kind regards, Stephan Gloor, Webservices Teacher, Switzerland
> ps. would be glad to know, if this is an 1.1.1 issue - so switching to a previous version would help.

-- 
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-2380) Session scope not working

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

Davanum Srinivas updated AXIS2-2380:
------------------------------------

    Assignee: Glen Daniels

> Session scope not working
> -------------------------
>
>                 Key: AXIS2-2380
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2380
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Test
>          Components: deployment
>    Affects Versions: 1.1.1
>         Environment: Windows XP Service Pack2, Axis2 running as server, java 1.5.0_05
>            Reporter: Stephan Gloor
>            Assignee: Glen Daniels
>
> <service name="WeatherService" scope="soapsession"> ....
> doesn't work, when using the following code fragment:
>  
> ------------------------------------------------------------------------------------
> RPCServiceClient serviceClient = 
> new RPCServiceClient(); 
> Options options 
> = serviceClient.getOptions(); 
> options.setManageSession(true); 
> ... 
> serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); 
> ------------------------------------------------------------------------------------
>  
> the init method of the service is called every time the client executes invokeRobust on the same serviceClient instance.
> Thanks and kind regards, Stephan Gloor, Webservices Teacher, Switzerland
> ps. would be glad to know, if this is an 1.1.1 issue - so switching to a previous version would help.

-- 
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-2380) Session scope not working

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

Deepal Jayasinghe commented on AXIS2-2380:
------------------------------------------

Hi ;
The way Axis2 soapsession works is , first you need to get the serviceGroupId to the client side and then send that id in the next messages. But in your case you first invoke robust operation so there is no way to get the serviceGroupId back to the client , that is why you have encountered this problem. AFAIK that is not a bug in Axis2 , rather that is how we have implement that. If you can get the serviceGroupId into client side (somehow) then you will be able to invoke your service in session aware manner.

To have soapsession support, first you need to invoke in-out operation and then send that id back in later messages.

> Session scope not working
> -------------------------
>
>                 Key: AXIS2-2380
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2380
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Test
>          Components: deployment
>    Affects Versions: 1.1.1
>         Environment: Windows XP Service Pack2, Axis2 running as server, java 1.5.0_05
>            Reporter: Stephan Gloor
>            Priority: Blocker
>
> <service name="WeatherService" scope="soapsession"> ....
> doesn't work, when using the following code fragment:
>  
> ------------------------------------------------------------------------------------
> RPCServiceClient serviceClient = 
> new RPCServiceClient(); 
> Options options 
> = serviceClient.getOptions(); 
> options.setManageSession(true); 
> ... 
> serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); 
> ------------------------------------------------------------------------------------
>  
> the init method of the service is called every time the client executes invokeRobust on the same serviceClient instance.
> Thanks and kind regards, Stephan Gloor, Webservices Teacher, Switzerland
> ps. would be glad to know, if this is an 1.1.1 issue - so switching to a previous version would help.

-- 
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-2380) Session scope not working

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

Deepal Jayasinghe resolved AXIS2-2380.
--------------------------------------

    Resolution: Won't Fix

Hi Stephan ,

In the way SOAP session work is , client first need to get the ServiceGroupID into the client side and send that for the next invocations. And that is one of the limitation we have in Axis2 SOAP session management. In your case you are invoking an in-only operation and therefore there is no way to get the service group id back to the client.

I do not think that something we can fix , to have SOAP session support first you need to invoke in-out operation and then invoke whatever MEP you want. 

> Session scope not working
> -------------------------
>
>                 Key: AXIS2-2380
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2380
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Test
>          Components: deployment
>    Affects Versions: 1.1.1
>         Environment: Windows XP Service Pack2, Axis2 running as server, java 1.5.0_05
>            Reporter: Stephan Gloor
>            Assignee: Glen Daniels
>
> <service name="WeatherService" scope="soapsession"> ....
> doesn't work, when using the following code fragment:
>  
> ------------------------------------------------------------------------------------
> RPCServiceClient serviceClient = 
> new RPCServiceClient(); 
> Options options 
> = serviceClient.getOptions(); 
> options.setManageSession(true); 
> ... 
> serviceClient.invokeRobust(opSetWeather, opSetWeatherArgs); 
> ------------------------------------------------------------------------------------
>  
> the init method of the service is called every time the client executes invokeRobust on the same serviceClient instance.
> Thanks and kind regards, Stephan Gloor, Webservices Teacher, Switzerland
> ps. would be glad to know, if this is an 1.1.1 issue - so switching to a previous version would help.

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