views:

32

answers:

1

Is there any trick to run a Webservice automatically to check some date specific and performs some operations on particular date. Like sending birthday emails and so on?

A: 

That's what something like Quartz.NET is for if you're writing .NET web services.

duffymo
nopes sir , am working on asp.net. c# and i want to calculate some date specific activities, so i want it.
Abhisheks.net
I don't think that's what a web service is for. Those are usually triggered by synchronous HTTP requests. A scheduled job is something different.
duffymo
no, HTTP request is not a solution , let me clear more. i am developing a application in which there are so many user and we have DOB of every user and now we want that on every day the system checks the date and compare them from DOB , if the day of date is same then some activities performs automatically , because we don't wanna that a administrator run a particular form which perform all these stuffs
Abhisheks.net
please tell me some solution.
Abhisheks.net
@Abhisheks.net - we agree then. Your solution is not about web services, it's about running a job automatically. Your solution is a cron job, running under the control of the operating system on a server. The cron job starts at the same time every day, accesses the database to get all user birth dates, and loops through the list to perform the automatic tasks for each one. I'd recommend that you write the logic to do that, test it, and then worry about the scheduling once it's working.
duffymo
oksss , fine can you provide me some example of that, and it will be worked on a shared server because we don't have all rights on the server
Abhisheks.net
You should talk to the person who does have the rights to help you set such a thing up. And no, I'm not providing you an example of how to write a script and set it up as a cron job.
duffymo