?
Solved

Interprocess Communication

Posted on 2006-06-06
9
Medium Priority
?
236 Views
Last Modified: 2010-04-16
Hi,
I have two applications on the same computer. A windows service that monitors a directory for newly generated text files, and a console application that should output the contents of that file.
Now i want these two applications to communicate in real time. But i don't know how can i achieve this. Microsoft provides serveral mechanisms for interprocess communication like
Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
and  Windows Sockets
Please tell me which one is suitable in my case and if possible provide an example as well.
Many thanks in advance.
0
Comment
Question by:technocrap
6 Comments
 
LVL 6

Expert Comment

by:MuhammadAdil
ID: 16849375
Hello Dear

there soap protocol is used to communicate with websevice. U can communicate with websevices with proxy class (WSDL).

http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21756482.html
http://msdn2.microsoft.com/en-us/ms228289.aspx

Best Regards
0
 

Author Comment

by:technocrap
ID: 16849394
I am not talking about webservice, but "Windows Service".
0
 
LVL 9

Accepted Solution

by:
noulouk earned 200 total points
ID: 16850123
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 7

Expert Comment

by:God_Ares
ID: 16851115
Use Noulouk's comment,.. this is a method for in the box interprocess communication..

basicly it all comes down writing you own class with stuff like "AddNewCustomer(...) ProcessBill(..)" etc,..

All communication stuff is handled for you,.. so this is the way to go in my opinion! (and noulouk's )

regards

Floris
0
 
LVL 13

Expert Comment

by:devsolns
ID: 16851452
.NET remoting is by far the best and most efficient way for applications in different app domains to communicate.

MuhammadAdil

XML/SOAP web services are for more contractual xsd typed messaging.  Even though they are often abused in an RPC style way they are not a good fit for interproc com.
0
 
LVL 13

Expert Comment

by:devsolns
ID: 16851470
Let me clarify, its by far the best when both applications are .NET based and do not need multilanguage capability.

.NET remoting offers several transport mechanisms, binary, http, soap, ect.  I would avoid SOAP and only use http if you need to traverse firewalls, ect.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question