In this first we will create a new console application.
Project -> Service Reference then following screen will be show
static void Main(string args)
// following code is used to call web service
using (ServiceReference1.WebService1SoapClient obj = new ServiceReference1.WebService1SoapClient())
obj.insertXMLtoDB(); // call method of webservice
After that we will build our application.
Now we will create a scheduler for our application that will call our application after some specified time interval. For this we will go to
Start-> All Programs -> Accessories -> System tools -> Task Scheduler
And select “Creat Task” as shown below
Now we will click on Ok Button in General tab then our task is created successfully. And according to our setting our application will be called. And then following screen will be show