all groups > dotnet web services > april 2005 >
You're in the

dotnet web services

group:

Web service session in winform client


Web service session in winform client Kevin Yu
4/22/2005 11:07:05 AM
dotnet web services:
hi all

got a questoin here, I have a winform client to call web service and the web
service functions have EnableSession =ture, use IE to test the web service
session, it works, but how to get it to work in winform? it seems like every
call to the service will start a new session even if the web service object
is a global variable in the winform.


kevin


Re: Web service session in winform client Sami Vaaraniemi
4/23/2005 11:56:36 AM

[quoted text, click to view]

To enable session state, the consumer must create a CookieContainer object
and assign it to the CookieContainer property of the Web Service proxy. For
more information check out (watch for the wrap)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebservicesprotocolshttpwebclientprotocolclasscookiecontainertopic.asp

Regards,
Sami

Re: Web service session in winform client Kevin Yu
4/26/2005 2:07:48 PM
Thanks Sami


[quoted text, click to view]

AddThis Social Bookmark Button