473,499 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Service and Client

I need to develop an application that runs as a service. Easy there are
samples on how to do this.

I need to have a client which updates information for the service. Easy
to do.

How do I notify the Service that details have been changed by the Client
and the Service needs to re-read the data and update its self.

I would like this to work on a single PC but must consider that I may
need the client running on several PC's with the service on a server.

I would like to send a message from the client(s) to the service and the
service reload the data at a predefined times.

Regards
Jeff
May 11 '07 #1
3 1469
"Jeff Williams" <je*******************@hardsoft.com.auwrote in message
news:13*************@corp.supernews.com...
>I need to develop an application that runs as a service. Easy there are
samples on how to do this.

I need to have a client which updates information for the service. Easy
to do.

How do I notify the Service that details have been changed by the Client
and the Service needs to re-read the data and update its self.
From the Client, use the ServiceController class which has a method
called ExecuteCommand that lets you send an integer to the server.

On the server, override the method OnCustomCommand, which will fire when
the client sends the ExecuteCommand.

May 11 '07 #2
On May 11, 9:30 am, Jeff Williams
<jeff.williams_NO_S...@hardsoft.com.auwrote:
I need to develop an application that runs as a service. Easy there are
samples on how to do this.

I need to have a client which updates information for the service. Easy
to do.

How do I notify the Service that details have been changed by the Client
and the Service needs to re-read the data and update its self.

I would like this to work on a single PC but must consider that I may
need the client running on several PC's with the service on a server.

I would like to send a message from the client(s) to the service and the
service reload the data at a predefined times.

Regards
Jeff
Dear Jeff,

You can use any IPC mechanism such as named pipes, Remote procedure
calls etc.

Since you want to consider IPC over network, I would suggest using Web
Services Enhancments messaging technique (using for instance the the
soap:tcp protocol).

Refer to this article on WSE:
http://msdn2.microsoft.com/en-us/library/ms977323.aspx

Feel free to ask any questions regarding IPC or WSE.

Moty

May 11 '07 #3
"Jeff Williams" <je*******************@hardsoft.com.auwrote in message
news:13*************@corp.supernews.com...
>I need to develop an application that runs as a service. Easy there are
samples on how to do this.

I need to have a client which updates information for the service. Easy
to do.

How do I notify the Service that details have been changed by the Client
and the Service needs to re-read the data and update its self.

I would like this to work on a single PC but must consider that I may need
the client running on several PC's with the service on a server.

I would like to send a message from the client(s) to the service and the
service reload the data at a predefined times.

Regards
Jeff


When both client and the service are .NET applications, you should take a
look at Remoting (Framework V2) or WCF (Framework V3). Consider using the
IPC channel for local connections (same box) and the TCP channel for LAN
connections.

Willy.

May 11 '07 #4

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

Similar topics

9
4171
by: Marty McDonald | last post by:
If I invoke a web service, and it throws an exception, I can see the exception if the client app is a .Net app. However, if the client app is not a .Net app, I only receive the HTTP 500 error. I...
2
7265
by: Fadi | last post by:
Backround: I am trying to figure out how to do the equivalant of a classic COM Local Server Singleton in .NET/C#. I created a coupld of simple Class Libs that exposes public interfaces and hosted...
2
1667
by: R.A. | last post by:
Hi, I have a web service that process a client call. When a client makes a call to the web method the method needs to query some data from a client_A and return the data to the calling client_B....
4
3100
by: SimpTheChimp | last post by:
I am going to write (my first) Windows Service. What I want is this service to run automatically when the computer/server is booted.... But also, to display an icon in the system tray whenever any...
5
2182
by: Buddy Ackerman | last post by:
My app is a .NET forms app that runs in the taskbar and periodically polls a web service. I have a client that wants the app to integrate with their Active Directory. They do not want the user to...
2
1756
by: John A | last post by:
I have a Web Service that I am reponsible for that we use for data integration purposes. Recently I have been tasked with sending some of this data to a third party. Because they need to receive...
4
3975
by: WinDev | last post by:
We are trying to build a system where we have a Windows Service do some manipulation of data, and then sending the data to a Windows App. I had posted a question of how we should do this and was...
6
3960
by: Joseph Geretz | last post by:
I have the following class which I am serializing and passing back and forth between my Web Service application and the client. public class Token : SoapHeader { public string SID; public...
4
6891
by: =?Utf-8?B?Z3Jhenph?= | last post by:
Hello If someone can help me with this it would be greatly appreciated. I’m no web service expert but I don't think i'm trying to do anything too special. I think i must be missing something...
0
8254
by: =?Utf-8?B?QWRyaWFuIENvbGU=?= | last post by:
I have written a simple WCF service hosted in a Windows console application and a simple WCF client console application that connects successfully to that service and retrieves data. I then ported...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.