Before you work with this release, make sure that you have installed the required software and are on a supported operating system. You can find this information in the JavaTM Web Services Developer Pack (Java WSDP) home page and Release Notes and the JAXR home page.
This release includes
This release implements version 1.0 of the JAXR specification. The specification is available from the JAXR downloads page, http://java.sun.com/xml/downloads/jaxr.html.
The JAXR RI release contents are arranged in the following structure within the Java WSDP release:
Directory Name | Contents |
---|---|
bin |
Startup scripts |
common/endorsed ,common/lib |
JAR files used by the JAXR RI |
docs/api |
API documentation for the JAXR RI |
docs/jaxr |
Release documentation for the JAXR RI, including a copy of the specification |
samples/jaxr |
Example code, including the Registry Browser |
At this release, the Java WSDP supports the Jakarta Commons Logging API. For details about changing the general default logging level, see the Java WSDP Release Notes. This section describes how to modify the logging level for JAXR.
If you use the Ant
tool, you can use a
<sysproperty>
tag to specify a logging level for the
java
built-in task. For JAXR, use the following tag:
<sysproperty key="org.apache.commons.logging.simplelog.log.com.sun.xml.registry" value="debug"/>
You can also use the -D
option to set this property on the
java
command line.
You can specify any of the following logging levels:
fatal error warn info debug trace
The default level is warn
.
Logging output for JAXR appears in the terminal window.
The implementation of JAXR in the Java WSDP allows you to set a number of properties on a JAXR connection. Some of these are standard properties described in the JAXR specification. Others are implementation-specific properties. The following tables list and describe these properties.
Property Name | Description | Data Type | Default Value |
---|---|---|---|
javax.xml.registry.queryManagerURL |
Specifies the URL of the query manager service within the target registry provider | String | None |
javax.xml.registry.lifeCycleManagerURL |
Specifies the URL of the life cycle manager service within the target registry provider (for registry updates) | String | Same as the specified queryManagerURL
value |
javax.xml.registry.semanticEquivalences |
Specifies semantic equivalences of concepts as one or
more tuples of the ID values of two equivalent concepts separated by a
comma; the tuples are separated by vertical bars:
id1,id2|id3,id4 |
String | None |
javax.xml.registry.security.authenticationMethod |
Provides a hint to the JAXR provider on the authentication method to be used for authenticating with the registry provider | String | None (UDDI_GET_AUTHTOKEN is the only
supported value) |
javax.xml.registry.uddi.maxRows |
The maximum number of rows to be returned by find operations. Specific to UDDI providers | Integer | None |
javax.xml.registry.postalAddressScheme |
The ID of a ClassificationScheme to be used as the default postal address scheme | String | None |
Property Name | Description | Data Type | Default Value |
---|---|---|---|
com.sun.xml.registry.http.proxyHost |
Specifies the HTTP proxy host to be used for accessing external registries | String | Proxy host value specified in
conf/jwsdp.properties . If you specified a proxy host and
port when you installed the Java WSDP, the values you specified are
in this file. |
com.sun.xml.registry.http.proxyPort |
Specifies the HTTP proxy port to be used for accessing external registries; usually 8080 | String | Proxy port value specified in
conf/jwsdp.properties |
com.sun.xml.registry.https.proxyHost |
Specifies the HTTPS proxy host to be used for accessing external registries | String | Same as HTTP proxy host value
|
com.sun.xml.registry.https.proxyPort |
Specifies the HTTPS proxy port to be used for accessing external registries; usually 8080 | String | Same as HTTP proxy port value |
com.sun.xml.registry.http.proxyUserName |
Specifies the user name for the proxy host for HTTP proxy authentication, if one is required | String | None |
com.sun.xml.registry.http.proxyPassword |
Specifies the password for the proxy host for HTTP proxy authentication, if one is required | String | None |
com.sun.xml.registry.useCache |
Tells the JAXR implementation to look for registry objects in the cache first and then to look in the registry if not found | Boolean, passed in as String | True |
com.sun.xml.registry.useSOAP |
Tells the JAXR implementation to use Apache SOAP rather than the Java API for XML Messaging; may be useful for debugging | Boolean, passed in as String | False |
You can set these properties as follows:
Properties props = new Properties(); props.setProperty("javax.xml.registry.queryManagerURL", "http://uddi.ibm.com/testregistry/inquiryapi"); props.setProperty("javax.xml.registry.lifeCycleManagerURL", "https://uddi.ibm.com/testregistry/protect/publishapi"); ConnectionFactory factory = ConnectionFactory.newInstance(); factory.setProperties(props); connection = factory.createConnection();
postalAddressScheme
, useCache
, and
useSOAP
properties
may be set in a <sysproperty>
tag in a
build.xml
file for the Ant
tool. For example:
<sysproperty key="useSOAP" value="true"/>These properties may also be set with the
-D
option on the
java
command line.
The 1.0_02 release of the JAXR RI has the following limitations:
DeclarativeQueryManager
interface.
At this release, the JAXR RI has the following known issues:
-DuseSOAP=true
to the java
command when you run a
JAXR client program. If you use the Ant
tool, you can also use
the following <sysproperty>
tag in your
build.xml
file:
<sysproperty key="useSOAP" value="true"/>
Description
value that you specify for a User
. This
problem does not occur on the Solaris platform.
find_relatedBusinesses
request message at this release,
use of the JAXR API findAssociations
method will fail with
the Registry Server. For details, see the
Java WSDP Registry Server
Release Notes.