如何生成WADL文件? [英] How to generate WADL file?

查看:167
本文介绍了如何生成WADL文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用RESTeasy实现编写了RESTful Web服务,并将EJB转换为JSON.现在,我正在开发客户端. 我正在使用Netbeans.如何生成WADL文件?在我生成客户端存根之后,没有任何问题.

I wrote RESTful web service using RESTeasy implementation and turn EJB into JSON. And now I'm on the way of development client side. I'm using Netbeans. How I can generate WADL file? And after I would generated client stub without any problem.

请,您能建议我该怎么做吗?或者,也许您知道其他简单的方法.

Please, could you suggest me how I can do this? Or maybe you know different easy way.

非常感谢! 阿尔特姆(Artem)

Thanks a lot! Artem

推荐答案

仅供参考,如果您尝试创建RESTful系统,那么使用WADL生成客户端代理将消除REST提供的许多好处.

Just FYI if you are trying to create a RESTful system, then generating client proxies using WADL will eliminate a significant number of the benefits REST provides.

但是,如果您使用术语REST来描述Http API(HAPI)服务,请继续使用WADL.我并不是说这是对术语的学问,我只是想让您知道,在这种情况下,您可以随意忽略所有不是RESTful"的,因为您没有尝试进行REST,这很酷

However, if you are using the term REST as a way to describe a Http API (HAPI) service then go right ahead and use WADL. I'm not saying this to be pedantic about terminology, I just want you to be aware that, if this the case, you are free to ignore all the "it's not RESTful" because you are not trying to do REST, and that's cool.

如果您要创建一个在未来5到10年中客户端和服务器组件可以独立发展的系统,那么REST可能适合您,在这种情况下,WADL可能不是您想要的.

If you are trying to make a system where the client and server components can evolve independently over the next 5 to 10 years, then maybe REST is right for you in which case WADL is probably not what you want.

这篇关于如何生成WADL文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆