Chapter 23. Web Service Descriptors

J2EE Web Services requires that you include a Web service deployment descriptor named webservices.xml with any archive file that contains a JSE or EJB endpoint. You place webservices.xml in the META-INF directory of the EJB JAR file for EJB endpoints, and in the WEB-INF directory of a WAR file for JSEs. See Chapter 22 for details on packaging webservices.xml in a WAR file or EJB JAR file. Listing 23-1 shows the webservices.xml file for the BookQuote Web service.

Example 23-1. The webservices.xml File for the BookQuote Web Service

 <webservices xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mh="http://www.Monson-Haefel.org/jwsbook/BookQuote/BookQuote" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee ...

Get J2EE™ Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.