Maintaining a session with Axis2 client
Thursday, September 04, 2008
This took me a little while to track down. It seems that there are many different ways to accomplish maintaining a session cookie with the Axis2 client generated stubs. I saw many variations as I googled for the solution but I ended up having to tweak what I found for my own purpose. You can add the following code in your client class that calls your Axis2 stub:
yourstub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.REUSE_HTTP_CLIENT,
Boolean.TRUE);
This is a way of manually turning on Axis2 session management. From my searching it seems that most often this needs to be done when connecting to a ASP.net server. Microsoft . . . really?
1 Comments:
you need a more exciting blog...maybe pictures??...stories about you?? just throwin it out there :) xoxo
Post a Comment
Subscribe to Post Comments [Atom]
<< Home