473,425 Members | 1,806 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,425 software developers and data experts.

Urgent!! regarding Session management in WEbservice

hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Jul 21 '05 #1
3 1385
hi. interesting question. i believe when you try to access a web service, in
your client code you would start by creating the proxy class and call the
service. if there are return parameters such as data set or any value, you go
ahead and process the return value. after you are done, you tend to destroy
the instance of the proxy class thereby closing the connection to the service
itself. in view of this, i dont think a session object is a good approach to
hold something specific to your user...

"sunnyz" wrote:
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #2
In this case I suggest you use .net remoting... as a rule of thumb.. if you
need state, use remoting, else use webservices
kind regards
Henrik

"Allan" wrote:
hi. interesting question. i believe when you try to access a web service, in
your client code you would start by creating the proxy class and call the
service. if there are return parameters such as data set or any value, you go
ahead and process the return value. after you are done, you tend to destroy
the instance of the proxy class thereby closing the connection to the service
itself. in view of this, i dont think a session object is a good approach to
hold something specific to your user...

"sunnyz" wrote:
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #3
[WebMethod(EnableSession=true)] .. that will give you Session support for
the web service method call.

Angel

O:]
"sunnyz" <su****@lycos-dot-com.no-spam.invalid> wrote in message
news:41**********@Usenet.com...
hi
I wanted to know whether we can store something in Session objects in
webservice.My windows application calls the webservice and i want the
data to be stored in Session object so that each user can get its own
data.Is this possible in webservice?coz i think it seems to lose the
data each time i call the webservice

Plz help me in this matter.Its urgent!!!

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff | last post by:
We're running a fairly busy and complex e-commerce website. It's an online retailer. We utilize MySQL for most of our site-based dynamic data, and then we use Oracle to access inventory and place...
0
by: Juan Irigoyen | last post by:
De: "Juan Irigoyen" <juan_irigoyen@hotmail.com> Asunto: Session in WebService with ASP.NET - Please Help Fecha: miércoles, 01 de septiembre de 2004 13:34 I have a page asp that call the...
5
by: Abhilash.k.m | last post by:
This is regarding the session management using Out of proc session management(SQL SERVER). Among the samples below which one is better to set the session? 1. There are 20 session...
1
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user...
1
by: trialproduct2004 | last post by:
Hi all, I am having slight confusion regarding memory management in .net. Say suppose i have two application one is in C# and other is in MFC(VC++). Both of this application are using lots...
1
by: ReinaldoCL | last post by:
Hello, I'm looking for a posibility to use session objects or cookies in a C# program on Pocket PC, that use a web service method with session enabled property. But the .NET Compact Framework...
3
by: sunnyz | last post by:
hi I wanted to know whether we can store something in Session objects in webservice.My windows application calls the webservice and i want the data to be stored in Session object so that each user...
2
by: ad | last post by:
I add an WebService (.asmx) in a WebApplication. I have a line : Session= "This is a Test"; but it always fail in run time. Can I use Session in WebService?
2
by: satisharas | last post by:
Hello, I am trying to write a custom session manager in ASP.NET 2.0 using oracle as the backend. I want to know how the session expires in web garden and we are using NLB (a session can be...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
1
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
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,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.