问题描述
是否可以通过wadl自动生成带有HttpUrlConnection或第三方解决方案(如运动衫,apache,restlet等)的jax-rs客户端?为此拥有一个框架/应用程序会不会有好处?
Is there any way generating automatically a jax-rs client with HttpUrlConnection or third party soloutions like jersey, apache, restlet etc. out of an wadl? Wouldnt it be an advantage to have a framework/application for this?
推荐答案
Apache CXF JAX-RS实现提供了WADL提供的基本的客户端代码生成器 http://cxf.apache.org/docs/jaxrs-services-description.html
There is a rudimentary client-side code generator from WADL available with Apache CXF JAX-RS implementation http://cxf.apache.org/docs/jaxrs-services-description.html
它会生成一些样板代码,但它与SOAP/WSDL Web服务的客户端生成器几乎没有任何关系.
It generates some boilerplate code, but it is nothing close to client generators for SOAP/WSDL web services.
这篇关于WADL的Restful Client的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!