Web service and windows service

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I'm looking for advice on what course of action to take with a windows
service I've written.
It's role is to monitor several others services making heavy use of
sockets and threading to ask about the state and progress of these
services. In some cases data transactions are periodical and others
are permenant connection. At present all data gathered is written to a
DB and accessed by web pages, but this method is not scalable for the
amount of data that will soon be gathered. I'd like to do away with
the DB and use a web service to query the windows service directly.
My question is, is remoting a method of doing this, and are there
any other ways?
I quite new to coding (6 months) and this seems to be taking things
up a gear!

Some pointers and tips would be appreciated.
 
Mark,

You can use web services to do this. However, because of the default
protection of ASP.NET, you will not have rights from within ASP.NET to
access the information you need (most likely).

My recommendation would be to create classes that derive from
ServicedComponent. You can configure these classes to run with the
appropriate user permissions. These classes will get the data you need,
directly from the services.

Then, all you have to do is create instances of these classes in your
web service, querying the appropriate information and then returning it
through the web service.

Hope this helps.
 
Back
Top