Click here to Skip to main content
15,860,861 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a asmx web service which fetches values from database. What I need is to run the web service automatically every 5 mins of time without opening the application? can anyone please suggest something for it? Whether any possibility of running the web service through IIS?
Posted
Comments
Sergey Alexandrovich Kryukov 3-Apr-14 15:27pm    
"Start... without opening the application" is not possible or impossible. It simply the nonsense.
—SA
PIRATHAP 4-Apr-14 5:48am    
Is there any possibility to trigger a web service without writing a windows service? I want to call the web service in regular interval as background operation.. Please provide your suggestion
Sergey Alexandrovich Kryukov 4-Apr-14 10:40am    
You asked:
"Is there any possibility to trigger a web service without writing a windows service? I want to call the web service in regular interval as background operation..."...

Sorry, my answer was a bit off-topic, by my mistake, so I removed it. Windows Service is just one method of running something in a prolonged period of time; any application can do it, too. What's the problem with it? The problem is: the whole idea to poll some service periodically looks questionable.

—SA

1 solution

Wrong. This is not how services works. You don't "run" a Web service by a client. A service is executed permanently on the server side; clients don't activate it. All a Web Service does is receiving HTTP requests from clients and sending back some HTTP response back to the clients, per each HTTP request. And such request can be a request to call some Web method and send the results back to a client.

All you need to know is hot to consume Web Services. It depends on the kind of the service and its spec. To start with some basics, please see: http://msdn.microsoft.com/en-us/library/aa561062.aspx[^].

Again, the whole idea to poll some service periodically looks questionable.

—SA
 
Share this answer
 

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