WindowsService WebService Communication

S

sharon669

Hi folks
Can anyone recommend simple way of communication between C#
WindowsService And C# WebService Running on the same machine ?



Thank you
Sharon
 
S

Sondre Bjellås

Hi folks
Can anyone recommend simple way of communication between C#
WindowsService And C# WebService Running on the same machine ?



Thank you
Sharon

I think the simplest way would be to use .NET remoting which I've used
myself in a similar scenario. Otherwise you could use filesystem (poor
solution), MSMQ, custom sockets. If you search after it in the web or
MSDN library you will find a lot of good help and documentation.


Regards,
Sondre
 
S

sharon669

Hi Sondre , well , I am trying to avoid the overhead of writing the
code for using such technologies

Sockets seems odd to me specially when transferring the same machine,
and the need to pass massive data size.
From a brief inspection of MSMQ I got the impression that implementing
this communication will be heavy task.
MSMQ from Microsoft:
Microsoft Message Queuing (MSMQ) technology enables applications
running at different times to communicate across heterogeneous networks
and systems that may be temporarily offline. Applications send messages
to queues and read messages from queues. MSMQ provides guaranteed
message delivery, efficient routing, security, and priority-based
messaging. It can be used to implement solutions for both asynchronous
and synchronous messaging scenarios.


Thank you
Sharon
 
D

Dilip Krishnan

Hello (e-mail address removed),
Well you answered your own question :) ... using soap over http! The windows
service should create a web service proxy and invoke messages on that proxy
to communicate with the web service. Now you could make that connection asynchronous
using queues like you suggested, but you would need to write a client that
polls the queue and makes requests to the web service.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
 

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

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top