Question : Windows Service and Web Service

How do i schedule a Windows Service to execute a Web Service I have created???

Answer : Windows Service and Web Service

to clarify things, windows services have nothing in common with web services.

the answer to your question can be divided into two parts:

1. Executing a web service from a windows server.
You need a method to "execute" a URL with a payload.
One option is to write custom code to execute the web service. this code can be written in .net, java, php or any other language that you are proficient in.
Another option is to use a scripting tool (like curl or wget) to post the appropriate SOAP/wsdl payload with the correct http headers.

2. Scheduling the web service execution.
Now that you have a program or script that can be executed from the windows command line, simply use the built-in windows scheduler.
Alternatively, write a service that periodically executes the above script/program.


ShalomC
Random Solutions  
 
programming4us programming4us