473,421 Members | 1,434 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

Schedule the call of a Web Service method: task scheduler or Windows Service?

I've to call 2 web method from time to time so that the web service will do
cleanup and sync jobs on a database.

These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.

Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use a
timer to call the web methods?
Thanks,
Luigi.
Jun 3 '07 #1
3 16182
Luigi,

I definitely think it is better to create the web service client app and
run it through windows scheduler. To have a service run and do nothing for
the majority of the time is just wasteful.

You might have to schedule the app to run for the lowest common
denominator, and then do a conditional check in your code based on whether
or not you want it to run (as you listed some conditions), but this isn't
too hard to do.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"BLUE" <bluewrote in message news:uv**************@TK2MSFTNGP02.phx.gbl...
I've to call 2 web method from time to time so that the web service will
do cleanup and sync jobs on a database.

These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.

Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use
a timer to call the web methods?
Thanks,
Luigi.
Jun 3 '07 #2
BLUE wrote:
I've to call 2 web method from time to time so that the web service will do
cleanup and sync jobs on a database.

These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.

Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use a
timer to call the web methods?
I would say that the best is to run something by windows or sqlserver
scheduler on the server.

And scheduling a web service client app on the client is only best
workaround.

Arne
Jun 3 '07 #3

"BLUE" <bluewrote in message news:uv**************@TK2MSFTNGP02.phx.gbl...
I've to call 2 web method from time to time so that the web service will
do cleanup and sync jobs on a database.

These methods can be called once every X days where X >= Y for the sync
method and X >= Z Y for the cleanup method with Y and Z specified by the
user in the app.config file.

Is it best to create a web service client app and schedule it with Windows
Scheduler or to create a web service client Windows Service that will use
a timer to call the web methods?
You create a Console application to consume the Web Services and run it with
the Windows NT Scheduler or some kind of 3rd party job scheduler.

Jun 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andy | last post by:
Hi I am developing a Windows Service application in C# which is designed to run at predetermined time everyday. My question is once my service starts what is the best way for it to run without...
0
by: KK | last post by:
Hi Is there a way to call a static method in a service? For example, NT service is an instance of a class. ServicesToRun = new System.ServiceProcess.ServiceBase { new FooClass() }; I want...
3
by: DH | last post by:
I hope this is a right place to post my question I'm working on a Windows service application with VB.net. The purpose is to let the service application as a monitor to periodically check a...
1
by: Meena Desai | last post by:
Hi, Can I call a web page of my site from my Windows Service? How? Thanks in advance. Meena
2
by: SBh. via DotNetMonster.com | last post by:
I already created a windows service that receive parameter in Sub GetValue () and I can registered and started service successfully. But unfortunately, I don't know how to write program to call...
1
by: Andrea Moro | last post by:
I need to do something that should be easy but it's revealing quite hard. Upload a large number of sql insert string to a remote db. I cannot use the sql 2000 web services, so this isn't the right...
0
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
2
by: deepadeshmukh | last post by:
How to call an external process from Windows service in C#2.0? This code doesnt works protected override void OnStart(string args) { ...
0
by: khurramlone | last post by:
I am trying to generate a client proxy from a WCF service library. I am using VS2005, .NET 3.0 on a Windows XP Pro workstation. The WCF service is hosted in a windows service. When I run the windows...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.