从Web服务列表中隐藏Restful服务(Apache CXF)

时间:2012-09-27 10:22:46

标签: java web-services soap wsdl cxf

我正在使用Apache CXF Framework,我在cxf-servlet.xml中指定了Restful以及Soap Webservice,在部署项目并通过url请求服务列表为htt:// SystemIP:8080 / WebServicesExample / services /服务列表出现同时具有SOAP和REST服务,有没有办法隐藏列表中列出的REST服务?

1 个答案:

答案 0 :(得分:5)

我自己做过...... 简单的方法是向

添加属性标记
     <jaxrs:properties>
             <entry key="org.apache.cxf.endpoint.private" value="true"/>
     </jaxrs:properties>

这也适用于JAX-WS服务。这必须添加到cxf-servlet.xml文件中

相关问题