I want to create an application that can send an object to another application.
One of them will be developed in .NET (C # Winforms), and the other in Java. The .NET part will run on the Windows client, while the Java client runs on the Unix operating system with few resources (for example, a smartphone).
I am looking for best practice to send this object (say Car) from my .NET application to a Java application.
I assume that you first need to serialize your object first, then send it, and then I will have to deserialize it again on the Java side.
My main criteria:
- Easy but most important : nice / smart
- General , if possible.
I was thinking about serializing my class Carand with the same class structure as on another platform, just deserializing it, automatically loading attributes.
The application should just do it. The database is connected to one of the platforms, but this is not part of my problem.
I was thinking about JSON or XML Serializing, but I don't know if this is a better / smart application.
I am happy for any suggestions.
source
share