从Webservice列表中隐藏Restful服务(Apache CXF) [英] Hiding the Restful service from Webservice list(Apache CXF)
问题描述
我正在使用Apache CXF Framework,其中我已经在cxf-servlet.xml中指定了Restful以及Soap Webservice,在部署项目并通过url请求服务列表为htt:// SystemIP:8080 / WebServicesExample / services /显示包含SOAP和REST服务的服务列表,有没有办法隐藏列表中列出的REST服务?
I am working with Apache CXF Framework in which I have specified the Restful as well as the Soap Webservice in cxf-servlet.xml,After Deploying the project and requesting the service list by url as htt://SystemIP:8080/WebServicesExample/services/ the service list appears which has both the SOAP and REST Services,Is there any way to hide the REST Services listed from the list?
推荐答案
我自己做过...
简单的事情是添加属性标签
I had done it myself... The simple thing is to add a property tag to
<jaxrs:properties>
<entry key="org.apache.cxf.endpoint.private" value="true"/>
</jaxrs:properties>
这适用于JAX-WS服务..这必须添加到cxf-servlet中。 xml文件
This is applicable for JAX-WS Service also..This has to be added in cxf-servlet.xml file
这篇关于从Webservice列表中隐藏Restful服务(Apache CXF)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!