background image

Implementing a JAXR Client

<< JAXR Architecture | Establishing a Connection >>
<< JAXR Architecture | Establishing a Connection >>
174
J
AVA
API
FOR
XML R
EGISTRIES
When an error occurs, JAXR API methods throw a
JAXRException
or one of its
subclasses.
Many methods in the JAXR API use a
Collection
object as an argument or a
returned value. Using a
Collection
object allows operations on several registry
objects at a time.
Figure 6­1 illustrates the architecture of JAXR. In the Application Server, a
JAXR client uses the capability level 0 interfaces of the JAXR API to access the
JAXR provider. The JAXR provider in turn accesses a registry. The Application
Server supplies a JAXR provider for UDDI registries.
Figure 6­1 JAXR Architecture
Implementing a JAXR Client
This section describes the basic steps to follow in order to implement a JAXR
client that can perform queries and updates to a UDDI registry. A JAXR client is
a client program that can access registries using the JAXR API. This section cov-
ers the following topics:
· Establishing a connection
· Querying a registry
· Managing registry data
· Using taxonomies in JAXR clients
This tutorial does not describe how to implement a JAXR provider. A JAXR pro-
vider provides an implementation of the JAXR specification that allows access to