The general web server configuration is described in the EDMWebServices_UserGuide (for Java and IIS). This document explains only modifications needed to activate REST services in older installations that were published using SOAP WS.
For a Java Servlet-based web server, add servlet definition and servlet mapping into 'web.xml' *_+configuration file:+_* <servlet>
Code Block |
---|
<servlet> <servlet-name>RESTServlet</servlet-name> |
...
<servlet-class>edmws.webapp.servlets.RESTServlet</servlet-class> |
...
</servlet> |
...
<servlet-mapping> |
...
<servlet-name>RESTServlet</servlet-name> |
...
<url-pattern>/REST/</url-pattern>* |
...
</servlet-mapping> |
For IIS web server, add one more mapping into value of 'mappings' application parameters
(<appSettings>, key=' mappings'):<add
Code Block |
---|
<add key="mappings" value=" |
...
/REST,edmws.webapp.servlets.RESTServlet; |
...
..... |
NOTE: all REST methods URLs below omit the beginning of the URL string, which should obviously include Host, Port, Context Name (web application context path for Java / virtual server path for IIS), REST service name (servlet mapping path for Java / mapping name parameter for IIS), like for example:
*http://localhost:8080/EDMWS/REST/*