You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Rajesh Patel <rp...@connecterra.com> on 2005/06/28 15:55:35 UTC

session management issue with .net client(resubmit)

Hi,
     I am not finding any hint for my problem. I have implemented axis webservice managing sessions using axis 1.2.1. Session management works fine with java client but .net client session starts after second method call instead of first call. Here is what happens,

1** First method call made by .net client makes server side create instance for the session Here is the request and response info from tcpmon,

**Request:

POST /axis/services/ProductCatalogCSVReader HTTP/1.1
VsDebuggerCausalityData: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2032)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 438
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8060
<?xml version="1.0" encoding="utf-8"?>...</soap:Envelope>

**Response:

HTTP/1.0 200 OK
Set-Cookie: 60
Set-Cookie2: 60
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="utf-8"?>...</soapenv:Envelope>

2** Second method call made by .net client also makes server side create new instance for the session even though client request contains cookie ref returned by first response.

**Request:

POST /axis/services/ProductCatalogCSVReader HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 1.1.4322.2032)
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 438
Expect: 100-continue
Connection: Keep-Alive
Host: localhost:8060
Cookie: 60=; 60=

<?xml version="1.0" encoding="utf-8"?>...</soap:Envelope>
 
**Response:

HTTP/1.0 200 OK
Set-Cookie: 60=
Set-Cookie2: 60=
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>...</soapenv:Envelope>

3.** calls after this for same method gives same content for request and response and no server side instance is created and session instance is used as expected.

Why session is not starting at first method call and instead starts at second method call even though session id is passed by .net client. Especially even though client request has session id provided?? Am I supposed to see JSESSIONID in http header(cookie) or it is not the case anymore for axis 1.2.1? Help would be appreciated.

-Raj