Enabling and Disabling Web Services in OneData
Web services can be enabled or disabled.
To enable web-services framework
1. Remove servlet/servlet mapping declarations to disable web services.
2. Stop the application using any of the methods provided by your application server.
3. Add the following declarations from OneData deployment descriptor file, web.xml.
Servlet Section <servlet>
<servlet-name>AdminServlet</servlet-name>
<display-name>AxisAdminServlet</display-name>
<servlet-class>
org.apache.axis.transport.http.AdminServlet
</servlet-class>
</servlet>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-nam e>Apache-AxisServlet</display-name>
<servlet-class>
org.apache.axis.transport.http.AxisServlet
</servlet-class>
</servlet>
Servlet-mapping Section <servlet-mapping>
<servlet-name>AdminServlet</servlet-name>
<url-pattern>/AdminServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name> AxisServlet</servlet-name>
<url-pattern> /AxisServlet</url-pattern>
</servlet- mapping>
<servlet-mapping>
<servlet-name> AxisServlet</servlet-name>
<url-pattern >/services/*</url-pattern>
</servlet-mapping>
4. Depending on your application server, you can change one of the following:
web.xml file. Located in the directory where
OneData is deployed.
onedata.war file. Verify the required parameters and redeploy the onedata.war file.
5. Start the application using any of the methods provided by your application server.