You should be abe to simply set the CookieContainer member of your .NET
web service client stub class to a new System.Net.CookieContainer()  like
:

ws.CookieContainer = new System.Net.CookieContainer() ;

Then .NET will maintain the session for you.

--Barry
-----Original Message-----
From: Naresh Bhatia [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 6:14 PM
To: '[EMAIL PROTECTED]'
Subject: Enabling .NET client to maintain session with Axis web service


Is there a way to ask a .NET client to maintain a session with a web
service developed in Axis. Here's my .NET code that needs to maintain a
session between the calls sendToken() and getToken().
    MySvc.MyService ws = new MySvc.MyService();
    ws.sendToken(token);
    int receivedToken = ws.getToken();
Thanks.
Naresh Bhatia

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to