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
Sami Vaaraniemi - 23 Apr 2005 09:50 GMT
> hi all
>
[quoted text clipped - 6 lines]
> object
> is a global variable in the winform.
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/frlr
fsystemwebservicesprotocolshttpwebclientprotocolclasscookiecontainertopic.asp
Regards,
Sami
Kevin Yu - 26 Apr 2005 21:07 GMT
Thanks Sami
> > hi all
> >
[quoted text clipped - 10 lines]
> 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/frlr
fsystemwebservicesprotocolshttpwebclientprotocolclasscookiecontainertopic.asp
> Regards,
> Sami