Java Reference
In-Depth Information
Enabling JDM Web Services Using JAX-RPC
One of the objectives of defining JDMWS as part of the JDM Standard
is to maintain a consistent API for both Java and Web services
applications, thereby allowing them to share the same JDM
implementation. JAX-RPC provides an easy way to wrap the JDM
API implementation as JDMWS. Figure 11-9 illustrates the higher-
level implementation architecture of the JDMWS using JAX-RPC and
JDM API. JAX-RPC provides tools to generate the wrapper Java
objects for the types defined in JDM WSDL and XML Schema.
This section gives a brief overview of JAX-RPC, and explains how
to build JDMWS using JAX-RPC. In particular, this discussion will
benefit Java developers who want their applications to communicate
with an existing JDMWS implementation.
Overview of JAX-RPC
JAX-RPC is the Java API for XML-based Remote Procedure Call
(RPC) defined under JSR-101 and included as part of J2EE 1.4. JAX-
RPC API is used to develop Java-based portable Web services using
WSDL-to-Java and Java-to-WSDL standard mappings. The JAX-RPC
runtime system automates the conversion of Java method calls and
objects to appropriate SOAP request and response messages in a Web
services environment.
Figure 11-10 illustrates the high-level steps involved in a JAX-RPC
runtime system. In this figure, the functionalities shown in gray
boxes are handled by the JAX-RPC runtime—the user does not have
to write any code for these functions. When a Web services Java cli-
ent invokes a service provider operation, the JAX-RPC runtime
JAX-RPC Wrapper Objects
Data Mining Engine
Figure 11-9
JDMWS higher-level implementation architecture.
Search WWH ::

Custom Search