Conversion from POJO to POCO

隐身守侯 提交于 2019-12-24 00:38:21

问题


I'm creating a Compact Framework 3.5 application, which is the client side of an older Java webapp. The communication protocol between both sides is REST+JSON.

Serialization of the POJOs to JSON is not a matter since the POJOs already exist. But instead of rewriting from scratch a C# version of all the POJOs sources to be able to deserialize the JSON client-side, I would prefer a generation using some tools. Or at least, do the conversion manually with a "standardized" method.

Do you know some tools that would match these needs ? Or some manual method ?

Thanks by advance

Fabien


回答1:


I think it really depends on what you have

  1. If you have a WADL than there are probably tools that can generate classes from it.
  2. If you have XSD's of the request and response objects you can also generate C# classes from it.
  3. You can try using tools that convert java to C#


来源:https://stackoverflow.com/questions/11241666/conversion-from-pojo-to-poco

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