views:

72

answers:

6

Is there any equivalent middleware for c like rmi for java or .net for c#?

A: 

You can write your own custom protocols, or use SOAP (WebServices).

I would suggest you using WebServices with Apache's AXIS library.

Pablo Santa Cruz
+1  A: 

Look up CORBA, a standard for middleware that can work with C.

bmargulies
A: 

Do you mean you want to communicate between a Java application and .Net application or write and a service layer and application in .Net using C#?

In either case you would probably want to use WCF. If you want to communicate between a Java and .Net application you will want to look at Sun's Project Tango.

Consuming WCF service in Java

Bronumski
Reading the title and description again I am not really sure what language you are after. Could you clarify what you want as this doesn't make sense: ".net for c#"
Bronumski
i intended to code in c. since the rmi stuff for java is quite easy to implement i'll use java.
mkind
+2  A: 

There's the original ONC RPC much loathed by myself in my younger days. There's DCOM. There's CORBA. There are also C implementations for SOAP and probably many of the other varieties of RPC.

JeremyP
A: 

Have a look at RPCGEN , that generates C code (client and server) to do remote call and shoulb installed by default on a unix computer. That's really easy to use , and you could find plenty of tutorial on the net. That might be outdated, but I have only try Corba and Soap with C++, so I don't how they fit with plain C.

mb14
A: 

For use with C and C++ there is gSOAP an open source SOAP framework.

codymanix