473,378 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Web service and windows service

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.
Nov 15 '05 #1
1 1190
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mark" <ma********@yahoo.co.uk> wrote in message
news:83**************************@posting.google.c om...
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.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Michael Riggio | last post by:
Is there a way to have a windows service instantiate a class that is a web service, which will then be accessible to clients via HTTP? Thanks, -Mike
1
by: Artur Kowalski | last post by:
I have a NotifyIcon in my Windows Service project and I am trying to add a ContextMenu to this NotifyIcon or use some of the mouse events. Everything isn't working. I think so base class of the...
9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.