DatacontractSerializer in Java

两盒软妹~` 提交于 2019-12-12 12:26:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!