How to generate WADL file?

断了今生、忘了曾经 提交于 2020-01-12 10:49:53

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/5297837/how-to-generate-wadl-file

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