To Manage the Servlet Configuration:

 

  1. Click web service name in the menu pane.

  2. Configure the Webservice as follows:

Item

Description

Connector XML Location

The full path to the connectors.xml file. If undefined then the default location of WEB-INF\connectors.xml is used.

Webservices XML Location

The full path to the webservices.xml file. If undefined then the default location of WEB-INF\webservices.xml is used.

Webservices Exposure Server

Whether to expose the web service in the WSDL request URL. If this is true then the WSDL sent to a web service client will contain the URL of the web service. The default is Yes.

 

  1. Configure the RESTful Webservice as follows:

Item

Description

RESTful Max Request Size

The maximum size in bytes of the RESTful Web Service requests that the server accepts. If the size is not defined, it defaults to the maximum size of 2 GB in terms of bytes.

 

  1. Click Save Web Services Servlet Configuration.

    If you do not click Save Web Services Servlet Configuration, your changes are not saved.

Configure Options Authorization:

If a REST service has both CORS and authorization (security ID & secret) enabled then the CORS Options request must include authorization. If this is not required then authorization for an Options request can be turned off by setting the servlet parameter 'restful_options_needs_authorization' to 'false' in the WebServices web.xml file.

Note that by default this parameter is set to 'true'. This parameter applies to all REST services (that is, you can not turn it on or off just for particular services).

Comment on this topic

Topic ID: 400020