accessing Windows Services help

G

Guest

I have an idea of using a Windows service as a middle tier. Clients will use this middle tier from a small VB application on pc to communicate with a DB server. The middle tier will expose public functions to read and write to the SQL server from the clients. I can’t find any information on how I would actually create public methods in a windows service that can be accessed by a client application. I created a new windows service application with .net 2003, but I have only onstartup, onstop etc. I wish to use this service like a COM object. How would one call a method in a Windows service? or pass parameters to a public function in the service to write values to an SQL server? I have seen this done with a purchased application, but I’m not sure how it was done. Thanks all
 
S

Stephen Martin

What you are looking for is Remoting. This link should give you a starting
place:

http://msdn.microsoft.com/library/d...inotherapplicationdomainsusingnetremoting.asp


Eric said:
I have an idea of using a Windows service as a middle tier. Clients will
use this middle tier from a small VB application on pc to communicate with a
DB server. The middle tier will expose public functions to read and write to
the SQL server from the clients. I can't find any information on how I would
actually create public methods in a windows service that can be accessed by
a client application. I created a new windows service application with .net
2003, but I have only onstartup, onstop etc. I wish to use this service like
a COM object. How would one call a method in a Windows service? or pass
parameters to a public function in the service to write values to an SQL
server? I have seen this done with a purchased application, but I'm not sure
how it was done. Thanks all
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top