生成 REST 的客户端对象
大家好: SOAP/WSDL 世界似乎非常擅长从数据模型生成对象,但我无法判断 Web 服务的 REST 方法是否支持相同的方法。在我看来,JSON 似乎正在成为大多数语言的新的通用、本机对象格式,从而消除了对特定于语言的 API 的任何需求。但是,我是网络服务游戏的新手。
因此我的问题是:是否有可以为我们自动生成 REST 客户端对象的工具?其次,在 Web 服务领域中是否习惯提供客户端对象来处理 REST 数据(这是处理 SOAP 数据所必需的)?
Hi Guys : It seems like the SOAP/WSDL world was very high on generating objects from data models, but I cannot tell wether the REST approach to web services favors the same approach. In my opinion, it seems as though JSON is emerging as the new common, native object format for most languages, thus obviating any need for language specific APIs. However, I'm new to the web services game.
Thus my question is : Are there tools which can autogenerate REST client side objects for us? And secondarily, is it customary in the web-services world, to provide client side objects for dealing with REST data (as is neccessary for dealing with SOAP data) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“REST 世界”与“SOAP 世界”不同的是,它没有像 WSDL 这样的服务描述语言。至少,它并不那么统一。
html2java
可以将您的表单转换为对象。此外,编程模型与远程对象有很大不同,wsdl2java 等工具往往会导致这种情况。What the "REST world" doesn't quite have in the same way as the "SOAP world" is a service description language like WSDL. At least, it's not quite as uniform.
html2java
that will turn your forms into objects. In addition, the programming model would be quite different to remote objects, which tools likewsdl2java
tend to incur.