Scheduling a WebService - Jon Galloway

Scheduling a WebService

How to schedule a webservice method call (using MS Task Scheduler)? The only way I could find was to create a VBS file that calls the WS, and schedule that:

Set oServerXML = CreateObject("Msxml2.ServerXMLHTTP") 

oServerXML.Open "GET","http://localhost/wsPDF/Pdf.asmx/CreateFromQueue?", False
oServerXML.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
oServerXML.send
Set oServerXML = nothing
Published Wednesday, August 06, 2003 10:37 AM by Jon Galloway
Filed under:

Comments

# re: Scheduling a WebService

What about a Windows Service w/ a timer using HttpWebRequest/Response classes?

Although, I believe your solution requires less code. Just a thought.


Christopher

Wednesday, August 06, 2003 3:15 PM by Chris Frazier

# re: Scheduling a WebService

Yep - we talked about that solution, too. We decided to go with this in the interests of maintainability. Also, there's just something that bugs me about installing windows services just to schedule things when there's already a Task Scheduler. If we ended up scheduling more than a few of these, though, it would be worth setting up a service that could call different webservices.

It's funny that there's no .NET canned solution to this when .NET is "a platform for building and consuming web services". Cold Fusion has a scheduler that does this exact thing - it works great, in my (extremely) limited experience.

Wednesday, August 06, 2003 3:26 PM by Jon Galloway

# re: Scheduling a WebService

Of course you could just write a simple .NET console app..very simple...

Saturday, September 20, 2003 12:15 PM by Scott Galloway

# re: Scheduling a WebService

I decided to go ahead and create a Windows Service which would ping a Web Service at regular intervals.

tomgilkison.blogspot.com/.../aspnet-task-scheduler-windows-service.html

Sunday, June 08, 2008 12:10 PM by Tom Gilkison

# re: Scheduling a WebService

hello awesome topic

Friday, May 10, 2013 7:56 AM by fgisecqmczd@gmail.com

Leave a Comment

(required) 
(required) 
(optional)
(required)