Is it possible to disable the Published webservices page?

9
When you deploy a Mendix project that publishes webservices, the "Published webservices" web page is automatically created showing the available webservices, examples how to use them and the WSDL schema. While this is very handy during development, in production I'd rather not show this information to the outside world if possible (in my case the webservices are only consumed by another of our applications and are not intended for "public" access). So, is it possible to disable these web pages (and the WSDL schema) in a production environment while keeping the webservice functionality?
asked
1 answers
11

Yup, sure. All you need to do is change the web descriptor for the servlets. You can find a "web.xml" file in your project directory, under "WEB-INF".

Change the following code:

<servlet-mapping>
    <servlet-name>Webservices</servlet-name>
    <url-pattern>/ws/*</url-pattern>
</servlet-mapping>

to:

<servlet-mapping>
    <servlet-name>Webservices</servlet-name>
    <url-pattern>/ws</url-pattern>
</servlet-mapping>
answered