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

cache dataset on server accross WS calls

I want to cache a dataset on a server via a web service. I was thinking of
caching it in a session object and returning the session ID as a string in
the web service back to the windows client. Then I want the windows client
to call a aspx page passing in the sessionID as a parameter and therefore
could access the dataset for further processing.

So, from the web service call, how do I:
1) get the session ID
2) then from the aspx page, how do I use this session ID to retrieve the
session cached on the server?

some vb code examples would be great. any good ideas on this?

Thanks.

--
mo*******@nospam.nospam
Nov 23 '05 #1
2 2432
Hello moondaddy,

You need to use Cache class of System.Caching

There is a brief description and samples of how to use it
http://samples.gotdotnet.com/quickst...tacaching.aspx

m> I want to cache a dataset on a server via a web service. I was
m> thinking of caching it in a session object and returning the session
m> ID as a string in the web service back to the windows client. Then I
m> want the windows client to call a aspx page passing in the sessionID
m> as a parameter and therefore could access the dataset for further
m> processing.

---
WBR,
Michael Nemtsev
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid. (c) Friedrich Nietzsche"
Nov 23 '05 #2
Hi Moondaddy,

I think Michael's suggestion on using the Cache collection instead of
Session is reasonable. For webservice, generally we're not recommeded to
use those implemention specific components such as the ASP.NET's
SessionState. Also, the ASP.NET sessionstate dosn't expose the directly
interfaces for use to access it through SessionID directly. So compared to
session, the applcation Cache is more recommended for your scenario. If you
have any other ideas or concerns, please feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
Message-ID: <43***************************@msnews.microsoft.co m>
From: Michael Nemtsev <ne*****@msn.com>
Subject: Re: cache dataset on server accross WS calls
References: <eq**************@TK2MSFTNGP10.phx.gbl>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1; format=flowed
X-Newsreader: JetBrains Omea Reader 661.1
Newsgroups: microsoft.public.dotnet.framework.webservices
Date: Tue, 30 Aug 2005 01:57:50 -0700
NNTP-Posting-Host: 62.231.16.21
Lines: 1
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.webservices:7670
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hello moondaddy,

You need to use Cache class of System.Caching

There is a brief description and samples of how to use it
http://samples.gotdotnet.com/quickst...rl=%2fquicksta
rt%2faspplus%2fdoc%2fdatacaching.aspx

m> I want to cache a dataset on a server via a web service. I was
m> thinking of caching it in a session object and returning the session
m> ID as a string in the web service back to the windows client. Then I
m> want the windows client to call a aspx page passing in the sessionID
m> as a parameter and therefore could access the dataset for further
m> processing.

---
WBR,
Michael Nemtsev
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid. (c) Friedrich Nietzsche"

Nov 23 '05 #3

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

Similar topics

3
by: Arthur Dzhelali | last post by:
Is there any way to cache dataset on one page and it will be accessible for one user? if you declare dataset shared it will stay on the server and page will be able reference to it on reload,...
4
by: Daren | last post by:
Hi all, I need to update the cache of a third party asp.net application when a user makes a change to a particular table in a SQL Server database (so the changes appear immediately in the...
1
by: Tony Hsieh | last post by:
Hi, So I have a asp page that displays the results of a database query that takes 3 minutes to run. I want to cache this dataset for 10 hours so I don't have to perform the 3 minute query every...
2
by: Martin | last post by:
Hi, I have been trying to find a good article that would explain the scalability of the cache and application variables accross a web farm. I believe that application variables will not scale...
13
by: Fernando Chilvarguer | last post by:
Hi, I'm retriving data from a database and storing it on the Cache Object using the following code: HttpContext.Current.Cache.Insert( cacheItemKey, contentDS, //THE DATASET WITH MY DATA...
5
by: Darrel | last post by:
I thought this warranted a new thread. Yesterday I asked about access relatively static content...is it better to read from the DB, or just grab a text file. It was suggested that I use the DB...
0
by: Bishop | last post by:
I have googled to try and find an answer to this issue, but everything I found beats around the bush. I have a web service that calls a DLL. In the DLL, I want to cache the small table data...
1
by: Bishop | last post by:
I have googled to try and find an answer to this issue, but everything I found beats around the bush. I have a web service that calls a DLL. In the DLL, I want to cache the small table data...
2
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.