webMethods, OneData, and Terracotta  10.2 | Managing Master Data with webMethods OneData | Developing for webMethods OneData | API Functions and Web Services in OneData | Enabling and Disabling Web Services in OneData
 
Enabling and Disabling Web Services in OneData
You can enable web services in OneData by adding a servlet-to-servlet mapping declaration.
* To enable or disable a web service in OneData
1. Stop OneData using any of the methods provided by your application server.
Note: Depending on your application server, you can perform a change in web.xml file located in the exploded directory where the application was deployed or inside onedata.war file. You must check the required parameters and redeploy onedata.war file if you use the latter approach.
*To enable web services, add the following declarations from the OneData deployment descriptor file web.xml servlet section.
<servlet>
<servlet-name>AdminServlet</servlet-name>
<display-name>Axis Admin Servlet</display-name>
<servlet-class>org.apache.axis.transport.http.AdminServlet</servlet-
class>
</servlet>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-name>Apache-Axis Servlet</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>
*To disable web services, remove servlet/servlet mapping declarations .
2. Start OneData using any of the methods provided by your Java application server.

Copyright © 2011-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release