问题
Is there a method or library in Java which can desirialize .net object wich was serialized by DataContractSerializer?
My Situation:
I want to create a java-client wich can communicate with microsoft MQ (MSMQ) over http. I want to use the DataContractSerializer in .Net and an Serializer in Java so that .Net can read the content of the message which is serialized by java.
回答1:
My solution was to use the jackson json serializer. Additionally i use the Bson4jackson library to serialize byte arrays. This is a fast solution for me.
On the .net side i use the NewtonSoft Json serializer (deserializes too) with BsonWriter/Reader to receive and send messages.
来源:https://stackoverflow.com/questions/14356832/datacontractserializer-in-java