Call a webservice from a windows service
-
Friday, June 22, 2012 5:12 PM
Hi all,
I'd like to know what you think about the following architecture:
A thin client with installed only a webserver and a sql db(on Windows Embedded).
A windows service and a webservice.I thought to monitor data on db using the windows service.
This windows service starts two backgroundworker:
- A executes a method exposed by the webservice every 10 ms
- B executes a method exposed by the webservice every 10 ms, but depending on the return value of this method, it should invoke a method exposed by another webservice, placed on another machine
The two background worker done simple tasks, but I need to be very fast.
Do you think this architecure has some contraindications?
Thanks!
All Replies
-
Sunday, June 24, 2012 4:09 PMModeratorI don't see anything inherently wrong with the architecture, except that you should be using WCF, not ASMX, if at all possible.
John Saunders
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 -
Monday, June 25, 2012 8:57 AMDo you mean to replace ASMX with WCF, or both ASMX and windows service with WCF?
-
Wednesday, July 25, 2012 2:16 AMModeratorReplace ASMX with WCF. ASMX is a legacy technology, intended only for backwards compatibility. It should not be used for new development.
John Saunders
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

