martes, 23 de enero de 2007 20:49
Has anyone ever created a windows service in C#.NET which would run every 30 to 60 minutes with the following parameters:
1. Query SQL Database in own environement,
2. Pass results from SQL query to client Web Service in another environment.
It sounds very basic but I am new to Windows and Web Services.
If anyone has any example code for download or an article on such a configuration, I would appreciate any advice.
Todas las respuestas
miércoles, 24 de enero de 2007 9:39hi,
this is quite easy, use this code fomr the site to generate a general service using a timer object and place your appropiate actions in the timer event.
HTH, Jens K. Suessmeyer.
miércoles, 24 de enero de 2007 13:35
Thank you for the response. I have actually already reviewed this article and it does as address the basics of creating a windows service and how to have it run based on a specified period of time. However, the learning curve that I am looking for is how to run a query on SQL server in your own environment to produce a dataset of results based on specified parameters and send those results to a specified external web service.
The majority of my experience is in ASP.NET(C#) and ADO.NET. I do not have much experience with web services.
Your thoughts are greatly appreciated. I catch on real quick but I need an example with supporting documentation if that is possible.
lunes, 29 de enero de 2007 9:42Still problems with the rampup of the Windows Service ?
Jens K. Suessmeyer.
sábado, 18 de agosto de 2012 2:53
did you ever figure this out. I am trying to do the exact same thing and found your thread. I know its been a few years but if you have the code to your solution, it would probably help me. I am new to programming as well.
Thank you for your help
martes, 28 de agosto de 2012 3:41ModeradorThat was five years ago. The Microsoft platform has changed radically in five years. Even if the OP had the code, it wouldn't be code you'd want to use five years later.
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects