473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 5995

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tom | last post by:
hello question 1: I have the following code below but the funny thing is that Session only works when I invoke it from the server side.. When I call this session from client (winform app) I...
17
by: Jeremy Chapman | last post by:
I've seen apps where if a windows exe form is running, it publishes a web service. There is no IIS folders or virtual directories required. Does anyone have information on how to do this?
7
by: Stan | last post by:
I need to attach to aspnet_wp.exe in order to debug a web serivice from WinForm client. Why don't I have to do this for ASP.NET / WebForm client? Why doesn't VS.NET debugger attaches...
0
by: David Palau | last post by:
We have a internal company WinForms application that makes some calls out to a intranet web service (once at application start-up for some configuration info and then periodically during the life...
5
by: benjamin_kohler | last post by:
hi, if have the following scenario: I have a winform client which communicates with a web service method that supports session (EnableSession=true), so a cookie is created for this client after...
5
by: vthakur | last post by:
Hello: I have a Axis Web Service that sets the sessionid in the SOAP header for persisting the session. The client is a .Net client that processes the header as an Unknown Header. It sets the...
0
by: yao | last post by:
there are two web method in my web service. bool verifyUser(string user, string pwd) DataSet GetData() that I need connect the web service by WinForm, I hope the client is verified by server by...
6
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.