Click here to Skip to main content
15,908,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
public List<myClass> Mymethod(){
     List<myClass> Collect = new List<myClass>();
                if (list.Count == 0)
                {
                myfunction();  // my function must be invoked every day at 7 to update list
                Collection = list;
                return Collect;
                }

                else
                {
                    Collection = list;
                    return Collect;
                }
}
Posted
Updated 25-Mar-13 1:52am
v2

1 solution

You need something that will call your webservice everyday. Since the web is a disconnected medium you can write a Windows service that is constantly running and have it call your webservice. Or you could also have a console applicaiton and maybe use windows scheduler to fire it off.
 
Share this answer
 
Comments
satpal 2 25-Mar-13 7:56am    
hello,ryanb31 can you give me any working solution for this.thanks in advance.
ZurdoDev 25-Mar-13 7:57am    
There are lots of working solutions. Do you know how to write a windows service or a console app?
satpal 2 25-Mar-13 8:01am    
no.and where to put.I am new in web services.can u help me.
ZurdoDev 25-Mar-13 8:03am    
OK, well, I would start with learning how to do that. It is possible that there are tutorials online to do specifically what you want but you may not learn much if you just copy. It's pretty easy, just start a new project and either do a Windows Service or a Console App or even a Windows Forms app. You really need to be the one to decide how you are going to do this. You need to look at how it will be deployed and then decide which way will work the best. The bulk of code will be the same no matter which route you choose.
satpal 2 25-Mar-13 8:06am    
ok..can be start with web service

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900