By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,837 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,837 IT Pros & Developers. It's quick & easy.

Web service session in winform client

P: n/a
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

Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Kevin Yu" <ko**@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
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.


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/de...ainertopic.asp

Regards,
Sami
Nov 23 '05 #2

P: n/a
Thanks Sami
"Sami Vaaraniemi" <sa**********@pleasejippii.fi> wrote in message
news:e$***************@TK2MSFTNGP12.phx.gbl...

"Kevin Yu" <ko**@hotmail.com> wrote in message
news:ua**************@TK2MSFTNGP10.phx.gbl...
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.
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/de...ainertopic.asp
Regards,
Sami

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.