The WSServlet class has a field that can do what you are looking for: JAXWS_RI_PROPERTY_PUBLISH_STATUS_PAGE (this is the value com.sun.xml.ws.server.http.publishStatusPage ).
If you look at the source code from the JAX-WS download, you need to set it as a context parameter in the web.xml :
<web-app> <context-param> <param-name>com.sun.xml.ws.server.http.publishStatusPage</param-name> <param-value>false</param-value> </context-param> ...
It seems that the HttpAdapter has something similar to it, but was taken from an environment variable:
setPublishStatus( System.getProperty(HttpAdapter.class.getName() + ".publishStatusPage") .equals("true"));
The code in the HttpAdapter marked as deprecated in javadoc, so the context parameter seems capable.
source share