471,582 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,582 software developers and data experts.

Web service session in winform client

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
2 5913

"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
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.

Similar topics

3 posts views Thread by Tom | last post: by
17 posts views Thread by Jeremy Chapman | last post: by
reply views Thread by David Palau | last post: by
5 posts views Thread by benjamin_kohler | last post: by
11 posts views Thread by Glenn | last post: by
1 post views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.