473,406 Members | 2,281 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,406 software developers and data experts.

How to use WebService session in C# Windows Forms?

64
Hi,

Im running a test of performance between WCF and WEBSERVICES and im trying to setup the same things in both technologies. My WCF server works fine (except Circular Reference issues working with Entity Framework and stuffs like that but its not the case here) and now im trying to setup a WebService to learn how Session works in Windows Forms. Ive seen examples for ASP.NET using the class COOKIECONTAINER but i cant figure out how it works in Windows Forms. I would like to recover a state of an object just like the WCF provides me with sessions.

Is this possible? If yes, what is the best approach for this case?

Thanks in advance,

Fernando Mello
Jul 23 '10 #1

✓ answered by Sfreak

Ok here I go...

I just discovered WHERE I declare a WEB REFERENCE in Visual Studio 2010 using Windows Forms... because when you start an ASP.NET application the option appears when you right click on REFERENCES. When you start an Windows Forms application you must add a SERVICE REFERENCE and then click on ADVANCED button to select the WEB REFERENCE. From now on you can use the session just the way you use in asp.net pages setting the cookiecontainer and retrieving the states of objects you might use in your application. Even i didnt get any answer I supposed that was important to share the answer here.

Thanks anyway,

Fernando Mello

1 5061
Sfreak
64
Ok here I go...

I just discovered WHERE I declare a WEB REFERENCE in Visual Studio 2010 using Windows Forms... because when you start an ASP.NET application the option appears when you right click on REFERENCES. When you start an Windows Forms application you must add a SERVICE REFERENCE and then click on ADVANCED button to select the WEB REFERENCE. From now on you can use the session just the way you use in asp.net pages setting the cookiecontainer and retrieving the states of objects you might use in your application. Even i didnt get any answer I supposed that was important to share the answer here.

Thanks anyway,

Fernando Mello
Jul 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
2
by: Pink | last post by:
Hi I am a Newbie to .Net can anyone let me know the diffrence between Windows.Forms and Winforms they are different version of totally different and are some methods different too Thanks
1
by: Tarren | last post by:
Hi: In Visual Basic is there the equivalent of a Session variable where I can store variables in memory while the executable is running? I have been coding ASP .NET for some time, but am new to...
0
by: cdani | last post by:
Hello. I have an applicattion with visual basic.net, which uses windows forms. How can I mantain a session in different calls to the same webservice? (which uses some database access). The goal...
15
by: Sandy | last post by:
My background is web based. I am attempting to write a Windows application and I am finding some simple things difficult. Currently I am trying to find out how to store information session wide....
2
by: Frankie | last post by:
Using SQL Server 2005 and .NET 2.0; I'm creating a Windows Forms application that will need to display photos of people, along with a bunch of information about each person. In a Web...
1
by: askme | last post by:
Hi, I am trying to connect to an internal corpnet webservice using windows forms application. I am using eshHeader30. But the call is failing. The return message is "SOAP Invalid Request". What...
5
by: Reds | last post by:
HI, I have just started using Web Forms. It seems that I'm not able to do some things that Windows Forms allow me to do. For example, I tried to implement a counter using a module level...
6
by: jojoba | last post by:
Hi, I am trying to create a .net webservice such that: When a user calls the service, the server creates a System.Windows.Forms.Form and shows it on the server screen. I know this sounds...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.