Chapter 5 Client Design
241
the service endpoint interface.) It also specifies the WSDL file for the service (its
location is given relative to the root of the package) and the qualified name for the
service in the WSDL file. If a WSDL file is required, the element specifies a JAX
RPC mapping file. The mapping file's location is also relative to the package root.
Code Example 5.20 is an example of a service reference:
OPC OT Service Client
service/OpcOrderTrackingService
com.sun.j2ee.blueprints.adventure.web.actions.
OpcOrderTrackingService
WEB INF/wsdl/OpcOrderTrackingService.wsdl
WEB INF/opc ot jaxrpc mapping.xml
xmlns:servicens="urn:OpcOrderTrackingService">
servicens:OpcOrderTrackingService
Code Example 5.20
web.xml Fragment for Web Service Reference
The JAX RPC mapping file specifies the package name containing the gener
ated runtime classes and defines the namespace URI for the service. (See Code
Example 5.21.)
xmlns:xsi="http://www.w3.org/2001/XMLSchema instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee ht
tp://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
version="1.1">
com.sun.j2ee.blueprints.adventure.web.actions
New Page 1