[SoapRMI] Session-like behaviour

Aleksander Slominski aslom_at_cs.indiana.edu
Tue, 05 Feb 2002 11:09:49 -0500


Pollähne. Ullrich wrote:

> to be honest we did not have much success with this.
> The result was the same (no session handling). The only thing that
> changed was the
> http header "accept" line that accepted more than xml files.

i was able to do sessions and cookies and interact correctly with sessions in
Apache SOAP in previous version of XSOAP but did not test it in the current one.

try to do:

    SoapServices.getDefault().setInvoker(HttpConnectionSoapInvoker.getDefault());

before you use any XSOAP code as it will pernamently switch XSOAP to J2SE
HttpUrlConnection.

that should get you cookie in actual connection - please use full debug mode
(-Ddebug) to see what is on the wire when you talk to tomcat.

if it is still not working please send us those wire dumps.

thanks,

alek