Chapter 3 Service Endpoint Design
Code Example 3.23
Weather Web Service Deployment Descriptor
3.8.2 Package Structure
Once the service implementation and deployment descriptors are completed, the fol
lowing files should be packaged into the appropriate J2EE module:
The WSDL file
The service endpoint interface, including its implementation and dependent
The JAX RPC mapping file, which specifies the package name containing the
generated runtime classes and defines the namespace URI for the service. See
Code Example 5.21 on page 242.
The Web service deployment descriptor
The type of endpoint used for the service implementation determines the type
of the J2EE module to use.
The appropriate J2EE module for a service with a JAX RPC service endpoint
is a WAR file. A service using an EJB service endpoint must be packaged in
an EJB JAR file.
The package structure is as follows:
WSDL files are located relative to the root of the module.
The service interface, the service implementation classes, and the dependent
classes are packaged just like any other J2EE component.
The JAX RPC mapping file is located relative to the root of the module (typi
cally in the same place as the module's deployment descriptor).