axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudhakar reddi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2042) Axis2 1.1.1 session works fine in browser but doesn't work in Stub client
Date Wed, 14 Feb 2007 15:22:05 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473118
] 

Sudhakar reddi commented on AXIS2-2042:
---------------------------------------

Hi,

The above issue is working with Axis2 nightly build 14.02.2007

Regards
Sudhakar

> Axis2 1.1.1 session works fine in browser but doesn't work in Stub client
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-2042
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2042
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: client-api
>    Affects Versions: 1.1.1
>         Environment: Axis2 1.1.1, JDK 1.5, Windows XP
>            Reporter: sam zhou
>         Assigned To: Deepal Jayasinghe
>             Fix For: 1.1.1
>
>         Attachments: Axis2 MySessionService.zip
>
>
> I developed the following sample code using Axis 2 with session management. The service
is very simple, it has a single method called plusone(). Whenever you call plusone() with
session enabled, it will return counter++. The counter is initialized to 0 in init() and stored
in session. 
>  
> I believe the server side code works fine, because after I deployed MySessionService.aar,
if I use my browser to refresh
> http://localhost:8080/axis2/rest/MySessionService/plusone
>  
> It will return 1, 2, 3, 4, 5, 6, etc.
>  
> However, in my Stub client test code, even if I coded
>  
> stub._getServiceClient().getOptions().setManageSession(true);
>  
> All the 3 direct stub.plusone() calls only return 1, 1, 1 instead of 1, 2, 3.
>  
> Attached are source codes in zip file. If you want to regenerate codes from scratch,
please use README.TXT. All the codes should work fine in Eclipse 3.2.1 except I removed libraries
of Axis2 and JUnit.
> Please note I set the session scope to transport session in service.xml.
> Thanks, Sam.

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


Mime
View raw message