suggestions for calling webservice in windows service
-
Hi all, I have created windows service which inserts data on timer basis. Right now am using dataconnections,queries in the windows service itself. Instead i can call webservice to insert data. I want to know whether which method works good. 1.using dataconnections in the windows service or Calling webserive for data insertion. Plz give ur suggestions Thanks in advance
cheers sangeet
-
Hi all, I have created windows service which inserts data on timer basis. Right now am using dataconnections,queries in the windows service itself. Instead i can call webservice to insert data. I want to know whether which method works good. 1.using dataconnections in the windows service or Calling webserive for data insertion. Plz give ur suggestions Thanks in advance
cheers sangeet
if performance is important and if you are never likely to want to use that dataaccess code elsewhere then keep it in the service. If, however, the windows service is going to be one of many applications that will be using the data access layer and you want them all to use a consistent code base then use a webservice. It can be a hard choice to make. I have used both in the past according to requirements. I've also wrapped the data code into a dll and used the dll in different projects. No one solution will work for every case. RUssell
-
if performance is important and if you are never likely to want to use that dataaccess code elsewhere then keep it in the service. If, however, the windows service is going to be one of many applications that will be using the data access layer and you want them all to use a consistent code base then use a webservice. It can be a hard choice to make. I have used both in the past according to requirements. I've also wrapped the data code into a dll and used the dll in different projects. No one solution will work for every case. RUssell
Thanks for ur quick response. In my case,am using the dataacces code only in the service and also performance matters. I think its better to use the dataaccess code in the service itself. Thank you.
cheers sangeet