When developing a POJO Web service, to deploy Web Services, add the settings for operating as a Web Service in web.xml. When developing an EJB Web service, you need not edit web.xml because the EJB Web service is included in the EJB-JAR file.
The following table describes the elements to be added and the values to be specified:
Table 8-1 Elements added and values specified in web.xml
Element names in web.xml | Specified value | ||
---|---|---|---|
web-app | -- | ||
listener | -- | ||
listener-class | com.cosminexus.xml.ws.transport.http.servlet.WSServletContextListener | ||
servlet | -- | ||
servlet-name | WSServlet | ||
servlet-class | com.cosminexus.xml.ws.transport.http.servlet.WSServlet | ||
load-on-startup | 1 | ||
servlet-mapping | -- | ||
servlet-name | WSServlet | ||
url-pattern | Mapped URL# |
A specification example is as follows:
<?xml version="1.0" encoding="UTF-8"?> |
For details on editing web.xml, see 3.4 Creating web.xml in the manual uCosminexus Application Server Web Service Development Guide.