本文介绍了为Apache CXF生成Wadl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以自动为cxf生成wadl文件吗?
我有一个类,它接受所有请求,例如@Path("/"),然后重定向到其实现类.我想为其生成wadl.这可能吗?
我已经完成了http://{localhost}:8080/api/?_ wadl,但是Iam正在获得
Is there any way to automatically generate wadl file for cxf?
Iam having a class that takes all requests like @Path("/") and then redirect to its implementation class. I want to generate wadl for it. Is this possible?
I have done this http://{localhost}:8080/api/?_wadl but Iam getting
<resources base="http://{localhost}:8080/api">
<resource path="/">
<!-- Dynamic subresource -->
<resource path="/"/>
</resource>
</resources>
推荐答案
我认为这不可能.您所做的是动态的,cxf不知道将请求定向到何处.确保所有服务都有自己的路径,以便您可以为这些服务提供提示.
I don't think that is possible. What you did is dynamic, cxf doesn't know where the request will be directed to. Make sure all services have their own paths, so that you could provide wadl for those services.
这篇关于为Apache CXF生成Wadl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!