[SoapRMI] Session-like behaviour
Aleksander Slominski
aslom_at_cs.indiana.edu
Tue, 05 Feb 2002 09:10:02 -0500
Pollähne. Ullrich wrote:
> Hi,
>
> while evaluating XSOAP we stumbled across a problem (maybe with our
> understanding).
>
> The situation is as follows:
> We have a Java application as client. The server side is the XSOAP
> Servlet running in Tomcat 4.
> Now we want to be able to keep a state between two requests from the
> client.
> With servlets we would use the session management with cookies or URL
> rewriting.
> But with XSOAP we were not (at least until now) able to find anything
> that allows us to identify a client for a session management.
> Is there a way to get or emulate sessions with XSOAP?
> if no, are there plans to do something like this?
hi,
it is possible you need to use socket connection that is cookie aware. by default
we use our own implementation that does not support cookies however you can switch
to use HttpConnectionSoapInvoker. the easiest way to go is to use
HttpConnectionSoapServices.getDefault() instead of default
SoapServices.getDefault() and you should be able to keep cookie / session with
tomcat.
let me know if it did not work.
thanks,
alek