Hiding the Restful Service from the Webservice List (Apache CXF)

I work with the Apache CXF Framework in which I specified Restful, as well as Soap Webservice in cxf-servlet.xml, after deploying the project and requesting the list of services by url like htt: // SystemIP: 8080 / WebServicesExample / services / a list of services appears. in which there are SOAP and REST services, is there a way to hide the REST services listed in the list?

+1
source share
1 answer

I did it myself ... The easiest way is to add a property tag in

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

This also applies to the JAX-WS service. This must be added to the cxf-servlet.xml file

+6
source

Source: https://habr.com/ru/post/1685703/


All Articles