118
Deploying and Packaging a Service Endpoint
The Web service deployment descriptor location depends on the type of ser
vice endpoint, as follows:
I
For an EJB service endpoint, the Web service deployment descriptor is pack
aged in an EJB JAR in the META INF directory as
META INF/webservice.xml
I
For a JAX RPC service endpoint, the deployment descriptor is packaged in
a WAR file in the WEB INF directory as
WEB INF/webservices.xml.
See Figure 3.10, which shows a typical package structure for a Web service
using an EJB endpoint. Figure 3.11 shows the typical structure for a Web service
using a JAX RPC endpoint.
EJB JAR
META INF
wsdl
WSDL file
ServiceIntf
JAX RPC mapping file
ServiceImpl
ejb jar.xml
Other class files
webservices.xml
platform specific ejbjar.xml
Figure 3.10
Package Structure for EJB Endpoint
<
New Page 1
Web Hosting Apache