background image

Running the Client Examples

<< Create a postal address | Before You Compile the Examples >>
<< Create a postal address | Before You Compile the Examples >>
R
UNNING THE
C
LIENT
E
XAMPLES
199
If the postal address scheme and semantic equivalences for the query are the
same as those specified for the publication, a JAXR query can then retrieve the
postal address using
PostalAddress
methods. To retrieve postal addresses when
you do not know what postal address scheme was used to publish them, you can
retrieve them as a collection of
Slot
objects. The
JAXRQueryPostal.java
sam-
ple program shows how to do this.
In general, you can create a user-defined postal address taxonomy for any
PostalAddress
tModels that use the well-known categorization in the
uddi-
org:types
taxonomy, which has the tModel UUID
uuid:c1acf26d-9672-
4404-9d70-39b756e62ab4
with a value of
postalAddress
. You can retrieve the
tModel
overviewDoc
, which points to the technical detail for the specification of
the scheme, where the taxonomy structure definition can be found. (The JAXR
equivalent of an
overviewDoc
is an
ExternalLink
.)
Running the Client Examples
The simple client programs provided with this tutorial can be run from the com-
mand line. You can modify them to suit your needs. They allow you to specify
the Java WSDP Registry Server for queries and updates. (To install the Registry
Server, follow the instructions in Preliminaries: Getting Access to a
Registry (page 175).
The examples, in the
<INSTALL>/javaeetutorial5/examples/jaxr/simple/
src/
directory, are as follows:
·
JAXRQuery.java
shows how to search a registry for organizations.
·
JAXRQueryByNAICSClassification.java
shows how to search a registry
using a common classification scheme.
·
JAXRQueryByWSDLClassification.java
shows how to search a registry
for web services that describe themselves by means of a WSDL document.
·
JAXRPublish.java
shows how to publish an organization to a registry.
·
JAXRDelete.java
shows how to remove an organization from a registry.
·
JAXRSaveClassificationScheme.java
shows how to publish a classifi-
cation scheme (specifically, a postal address scheme) to a registry.
·
JAXRPublishPostal.java
shows how to publish an organization with a
postal address for its primary contact.
·
JAXRQueryPostal.java
shows how to retrieve postal address data from an
organization.