Configuring Individual Servlets in the Context-Level web.xml File
Individual servlets are configured in a web.xml configuration file that is part of the project. For Web service projects, rwsfgen generates the file conf\<servicecontextname>_web.xml, which then gets deployed as <installdir>\apps\servlets\<servicecontextname>\WEB-INF\web.xml. The code below shows the web.xml file for the HelloWorld example:
 
<web-app>
<servlet>
<servlet-name>GreetingPortService</servlet-name>
<servlet-class>rwsf_webservice_servlet
.createWebServiceServlet</servlet-class>
<init-param>
<param-name>configFile</param-name>
<param-value>handlers.xml</param-value>
</init-param>
<init-param>
<param-name>serviceName</param-name>
<param-value>GreetingPortService</param-value>
</init-param>
<init-param>
<param-name>wsdlFileName</param-name>
<param-value>HelloWorld.wsdl</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>GreetingPortService</servlet-name>
<url-pattern>/HelloWorld/*</url-pattern>
</servlet-mapping>
</web-app>
You can use any web.xml file from the examples as a template for extending web.xml files for your services, although in most cases the generated file should be sufficient. For additional information on servlet configuration for Web services, see About the Servlet Used by the Service, in the HydraExpress Web Service Development Guide.
For servlets, you can use the web.xml file in <installdir>\apps\servlets\examples\WEB-INF\web.xml as a model. Configuration of servlet projects is discussed in detail in the HydraExpress Servlet Development Guide.