A WebService which can be time driven not event?

  • Thread starter Thread starter Sabeen Sadiq
  • Start date Start date
S

Sabeen Sadiq

Is it possible that web service can hit SQL Server Database after every 10
or 15 minutes. Actually what i want is that there is some webservice which
can check whether the specific data i want has been inserted in databse
and it should check it after every 15 mins
 
I don't think that's a good idea for web service is just a interface for
client program to connect with. Why not place a timer in the client to check
whether you get the specific data?
 
You can use [webmethod] attribute with caching property setted to 15
minutes,so first client call will be answered from database and same method
calls from client will be replied from the cache in next fifteen minutes,

Dincer Uyav
 
Sabeen Sadiq said:
Is it possible that web service can hit SQL Server Database after every 10
or 15 minutes. Actually what i want is that there is some webservice which
can check whether the specific data i want has been inserted in databse
and it should check it after every 15 mins

A Web service is typically meant to be a receiver and responder, not an
initiator. It's just like any other procedure you would create in code. If
you want something to *initiate* an action, I would recommend a Windows
service. Is there any reason why you would want to choose a Web service
over a Windows service for this problem?

HTH,

Mike Rodriguez
 
Back
Top