Hi Michael,
 
Apache SOAP maintains session using HTTP cookies. When you use Microsoft SOAP toolkit, it doesnt allow you to send back the cookies.
 
So Apache SOAP toolkit looks if the cookie is set or not... In your case, since you are using MSTK, no cookie is set. So it assumes that this is a new session! :(
 
AFAIK, there is NO way to set cookies if you use MS SOAP toolkit!
 
MS SOAP tookit also allows you to maintain sessions. But it assumes that you are going to use SOAP headers for that purpose! Apache SOAP 2.2 does NOT have that support! So thats a major problem.
 
You can have a look at AXIS. It does support writing SOAP headers!
 
Hope that it helps.
 
With Warm Regards,
Paramdeep
----- Original Message -----
Sent: Monday, March 11, 2002 3:41 AM
Subject: How to keep track of soap sessions

Hi,
 
I have the following problem:
 
I have implemented a simple soap service with a session context using Apache SOAP. I am accessing this service from the client using the microsoft soap toolkit with a code like the following:
 
            oot.mssoapinit("http://localhost:8080/ootest/ootest.wsdl",  "urn:ootest", "ootest");
// 1. call
            alert(oot.getTestMessage());
 
// 2. call
            alert(oot.getTestMessage());
 
The problem is that the 2nd call uses a new session, not the same session as the 1st call. The result is that the service degrades to run in a request context.
 
How can I assure that each call of the service runs in the same session context?
 
Greetings
 
Michael
 
 
 
--------------------------------------------------------------------------------
Michael Timpe
Melchiorstr. 24
50670 K�ln
eMail: [EMAIL PROTECTED]

Reply via email to