在CXF中禁用wadl Web服务定义 [英] Disable wadl Web Service Definition In CXF

查看:78
本文介绍了在CXF中禁用wadl Web服务定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CXF Web服务,并且一切运行正常.但是,当我要向公众公开我们的Web服务时,wadl网址正在从公众那里工作.任何人都可以看到我们的Web服务的wadl定义.

I am using CXF webservice and everything is working perfectly. But as I am going to expose our webservice to public the wadl url is working from public. Anyone can see the wadl definition of our webservice.

我们如何禁用此定义.

例如wadl的网址是- http://localhost:8080/webservice/rest?_wadl

e.g. the url for wadl is - http://localhost:8080/webservice/rest?_wadl

推荐答案

尝试将其添加到 jaxrs:server 中,这将隐藏 jaxrs:server 公开的端点.地址

Try adding this to jaxrs:server, this will hide the endpoint exposed by the jaxrs:server address

<jaxrs:properties>
   <entry key="org.apache.cxf.endpoint.private" value="true"/>
 </jaxrs:properties>

这篇关于在CXF中禁用wadl Web服务定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆