如何生成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.
Thanks a lot!
Artem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅供参考,如果您尝试创建 RESTful 系统,那么使用 WADL 生成客户端代理将消除 REST 提供的大量优势。
但是,如果您使用术语 REST 作为描述 Http API (HAPI) 服务的方式,那么请直接使用 WADL。我这么说并不是要在术语上迂腐,我只是想让你意识到,如果是这种情况,你可以随意忽略所有“它不是 RESTful”,因为你并没有尝试做 REST,这很酷。
如果您正在尝试创建一个客户端和服务器组件可以在未来 5 到 10 年内独立发展的系统,那么也许 REST 适合您,在这种情况下 WADL 可能不是您想要的。
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.
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.
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.