简体   繁体   中英

Hiding the Restful service from Webservice list(Apache CXF)

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

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>

This is applicable for JAX-WS Service also..This has to be added in cxf-servlet.xml file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM