• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cross language interaction

 
Dave Haley
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, maybe someone can guide me. We have a Virtual Machine that has to expose a certain interface, to another module written in .NET (C#), and viceversa, this .NET module has to expose some methods to the Java module. It is far more than just some data exchange, so RPC-like communication is needed. SOAP definition seemed to fit this need, but it not as a web service. If we implemented an HTTP bound SOAP, we might need two services (probably on the same web container, since it is local), to accomplish two way communication. Since the program runs both on windows and Linux, it will have to talk to another Linux native module, instead of the .NET. On several resources, SOAP is presented as a platform, language and protocol independent method/functions invocation mechanism. On the top of that, we saw, that this invocations were as easy as: call.(message, destination), and block until response is ready returning a SOAPMessage from were return type could easily be retrieved. This made SOAP a good choice at first.
However, SOAP is only the specification, and current SOAP implementations (the ones that are as easy to use as noted above) are only over HTTP (since the preferred application for SOAP are web services). Doing some research I found a TCP example on the web (which seems to be the only one, I got there from three different pages), but it was way too complex to use.
Is there another mechanism that allows invocation of functions/methods from different languages you can reccomend me with? Thnx in Advance!
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I know J2EE and .net have lot tools helping to create webservices as client as server part. So, it's almost plug and play solution. You just define method pattern and work done. Since there too many tools, it creates certian problem for at least J2EE side which one to pick. I'd pick JWSDP. However before doing this way, you can consider CORBA. We use it in our product to communicate Java part with C written part as open office with a great success.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic