Servlet Configuration File: web.xml
The <servicecontextname>_web.xml file includes servlet configuration information. This includes
a definition of the servlet
the name of the configuration file that defines the particular service (or services) that the servlet uses
other optional parameters
When you deploy your service, HydraExpress copies all config files, including this <servicecontextname>_web.xml file to the appropriate context directory in your <installdir>\apps\servlets directory.
For more information on this file and defining servlets, see
About the Servlet Used by the Service.Following is the contents of dayofweek_web.xml.
<web-apps>
<servlet>
<servlet-name>DayOfWeekPortService</servlet-name> 1
<servlet-class>rwsf_webservice_servlet.createWebServiceServlet
</servlet-class>
<init-param>
<param-name>configFile</param-name> 2
<param-value>handlers.xml</param-value>
</init-param>
<init-param>
<param-name>serviceName</param-name> 3
<param-value>DayOfWeekPortService</param-value>
</init-param>
<init-param>
<param-name>wsdlFileName</param-name> 4
<param-value>DayOfWeek.wsdl</param-value>
</init-param>
<servlet-mapping> 5
<servlet-name>DayOfWeekPortService</servlet-name>
<url-pattern>/DayOfWeek/*</url-pattern>
</servlet-mapping>
</servlet>
...
</web-apps>
The excerpt here shows the default configuration elements contained in the generated <servicecontextname>_web.xml file. Other optional configuration elements may be added to define session timeout values and to configure error pages.
For more information on setting a timeout value for your session, see
Configuring Session Timeouts. For more information, on error pages, see “Configure Error Pages,” in the
HydraExpress Servlet Development Guide.