What is the fastest way to share data structures between Java and C#? I want something where I can literally send a ‘car’ object or a ‘foo’ object and have it serialized and deserialized on both server and client.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WSDL (SOAP) is fairly interchangeable. If you want something less chatty, anything like Google’s ‘protocol buffers’, ‘ICE’ (ZeroC), etc offer interchangeable binary serialization and code generation.
For .NET / C#, there are currently two viable protocol buffers implementations here; protosharp is essentially inactive and incomplete) – either would be fine, but neither currently has a complete RPC stack, so you’d have to handle message passing yourself.