JBoss at Work: A Practical Guide

10.12. Web Services Deployment

The new files go into the EJB JAR file as follows:

  • In addition to the ejb-jar.xml, jboss.xml, and JAR Manifest files, the META-INF directory now contains webservices.xml and inventory-mapping.xml (the JAX-RPC mapping file). The WSDL file, InventoryService.wsdl, is in META-INF/wsdl.

  • The com/jbossatwork/ws directory holds the InventoryService (Service Endpoint Interface) class file.

  • Everything else remains unchanged.

The new CarDTOArray object class has been added to the com.jbossatwork.dto package, so its class file resides in the Common JAR's com/jbossatwork/dto directory.

At this point, we've shown all the Web Services-related deployment descriptors and upgraded InventoryFacadeBean. Let's show how to generate the descriptors and package the Web Service for deployment with Ant, XDoclet, and JWSDP.

Категории