Hello,
I'm new to Web Services.
I'm trying to develop a Web Service that retrieves some data out of a
database and sends them to the client as a DataSet when a method is invoked.
My question is: Is it possible to run another method on the Web Service
automatically to refresh the data? That means the Web Service should interact
as a Windows Service after a certain amount of time it should retrieve the
data and stores them locally, and when a Client is connection it always gets
the data from the local source (i.e. XML file), not from the database, so the
Client doesn't have to wait until the data is available. Only the Web Service
refreshes the data in the background (without any Client invokement).
I don't know if this would be possible but I think it isn't. My guess is
that I would write a Windows Service which queries the Web Service to refresh
the data.
But how can I solve this?
I would prefer that the Windows Service gets a dynamic list of Web Services
it should refresh. So I will have to set dynamic references to these Web
Services (not in the IDE "Add Web Reference") but the invoked method could
probably always be the same (i.e. "refreshData").
Does anybody know how I can solve this?
Can I simply add a timer to the Web Service? I don't think it will work.
Thank You in advance
Best regards
Sven