Although a web.xml file exists in the project for your Web service, you do not edit the web.xml file directly. Instead, you create a template that contains the changes that you want the workbench to include in the web.xml file when the workbench generates the WAR file again.
When you use the Build and Deploy wizard to generate a WAR file, the workbench deletes all of the files in your project and recreates them. Therefore, if you edit the web.xml file directly, you lose your changes when you use the Build and Deploy wizard.
When you use a template that contains the edits that you want to make to the web.xml file, the workbench merges the content of that template with the content web.xml file that it creates.
To customize a web.xml file: