O'Reilly logo

Java Web Services in a Nutshell by Kim Topley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the JAXR Examples

In order to use the example source code for this chapter, you need to install and configure the JAXR providers that you intend to use and set a small number of properties that the examples will use to locate and connect to the registry.

Using a UDDI Registry

Since the JAXR reference implementation includes a UDDI provider and a UDDI registry server, it is very simple to use the example source code with this registry type. The following sections describe what you need to do.

Edit the jwsnutJaxrExamples.properties file

The jwsnutJaxrExamples.properties file in your home directory (which should have been created according to the instructions given in Examples Online in the Preface) specifies the authentication information for the UDDI registry server and the URLs required to access it. In most cases, the default settings in this file, shown here, are appropriate:

# 
# User name and password for the UDDI JAXR registry server
#
JAXR_UDDI_USER = testuser
JAXR_UDDI_PASSWORD = testuser

#
# URLs for the UDDI JAXR registry server
#
JAXR_UDDI_SERVER_QUERY_URL = 
     ${WEBURL}/${REGISTRY_SERVER_APP}/RegistryServerServlet
JAXR_UDDI_SERVER_LIFECYCLE_URL = 
     ${WEBURL}/${REGISTRY_SERVER_APP}/ RegistryServerServlet

The JAXR_UDDI_USER and JAXR_UDDI_PASSWORD properties should be set to the username and password required to access the UDDI registry. The settings shown here are appropriate for the user that is already defined in the registry when you install the JWSDP or J2EE 1.4. If you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required