tags:

views:

92

answers:

3

Our group is primarily Java developers with a few .NET folks like me.

We have a new app that we're considering and are thinking of using .NET on the front-end and Java for the app server.

What is the best way to communicate? Soap can be slow. I don't think that Serialized XML will work. I seem to recall that it is proprietary for .NET. Or will it work?

A: 

You can use JSON as format for communication. Its structured, less complicated, and lightweight.

Sorantis
+2  A: 

Protocol Buffers or Hessian can provide multi-platform alternatives to SOAP. You can find some details concerning protocol buffers for .Net here.

Todd Stout
+5  A: 

The XML serialization is just that - XML. I can't immediately think of why there should be any issues with this idea, as long as both the .NET and Java setups are working against the same schema and objects. XML is an open format.

I think binary serialization is proprietary to .NET, and is not exchangeable with other platforms.

Grant Palin
Yes, it was binary serialization. Thanks you jogged my memory
Patrick From An IBank
Are Class Libraries (DLL) doable in JAVA? If so, you could just reference your JAVA library to your .NET project and call the functions from it, otherwise perhaps only referencing these functions from the GAC or COM so you might use the [DllImport()] tag in your .Net code. Just another idea which would save you from doing this HDD File IO thing.
Will Marcouiller
You can call java library methods from .Net using IKVM (http://www.ikvm.net/)
Todd Stout