O'Reilly logo

J2EE™ Web Services by Richard Monson-Haefel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required