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
2010-06-11 11:59:12
nopes sir , am working on asp.net. c# and i want to calculate some date specific activities, so i want it.
Abhisheks.net
2010-06-11 12:20:17
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
2010-06-11 12:42:02
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
2010-06-11 13:20:20
please tell me some solution.
Abhisheks.net
2010-06-11 13:20:42
@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
2010-06-11 15:13:11
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
2010-06-14 06:30:06
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
2010-06-14 09:50:07