Click here to Skip to main content
15,919,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,
I have a question about web services.

I have a web service and client.
I want my service to cache data from other network devices onto the server where I host the web service.

Now my question is: Does it start a new webservice instance everytime I open the client or does the one webservice do all the functioning?

The purpose for this is firewall issues. I want to know if everytime I open the client will it start caching again because my caching will be every 10 seconds.
So i want to know if the service will cache every 10 seconds, and, if its opened on a different pc at a differnt time will it still cache on the same 10 seconds or in between the 10 seconds.?

ok now my next question is :

Do you think webservice is the way to go on the caching or should i write a differnt app or website to do the caching?
Posted
Updated 13-May-10 0:23am
v3
Comments
Dalek Dave 13-May-10 4:27am    
Edited for readability, grammar and spelling.
Content unchanged.

To have better functioning try to move on WCF Functionality, where you can have multiple options available.
 
Share this answer
 
If your web service is called from a web page, a new instance is created every time, because that's how the page lifecycle works. A new instance is created whenever a new page is loaded, that means, if you reload the same page, a new instance is created. If you need to cache data, do it to a database, don't rely on application state.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900