简体   繁体   English

如何生成WADL文件?

[英]How to generate WADL file?

I wrote RESTful web service using RESTeasy implementation and turn EJB into JSON. 我使用RESTeasy实现编写了RESTful Web服务,并将EJB转换为JSON。 And now I'm on the way of development client side. 现在,我正在开发客户端。 I'm using Netbeans. 我正在使用Netbeans。 How I can generate WADL file? 如何生成WADL文件? 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 阿尔特姆

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. 仅供参考,如果您要创建RESTful系统,那么使用WADL生成客户端代理将消除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. 但是,如果您使用术语REST来描述Http API(HAPI)服务,请继续使用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. 我并不是说这是对术语的学问,我只是想让您知道,在这种情况下,您可以随意忽略所有“不是RESTful”的,因为您没有尝试进行REST,这很酷。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM