InfoCenter Home >
4: Developing applications >
4.8: Web services - an overview >
4.8.1: Web services components >
4.8.1.1: UDDI4J Overview

4.8.1.1: UDDI4J Overview

UDDI4J is a Java class library that provides an API that is used to interact with a UDDI registry. This class library generates and parses messages sent to and received from a UDDI server.

The central class in this set of APIs is:

com.ibm.uddi.client.UDDIProxy
This class is a proxy for the UDDI server that is accessed from the client code. Its methods map to the UDDI Programmer's API Specification. Review IBM's Javadoc for additional implementation details.

The classes within com.ibm.uddi.datatype represent data objects that send or receive UDDI information. In the business and service model, the data objects are also known as subpackages.

The subpackage com.ibm.uddi.request contains messages sent to the server. Generally, these classes are not used directly; rather, they are invoked by the UDDIProxy class.

Similarly, the subpackage com.ibm.uddi.response represents response messages from a UDDI server.

UDDI4J error handling

When invoking UDDIProxy inquiry methods, UDDIException is thrown when errors are received from the UDDI proxy. UDDIException can contain a DispositionReport with information regarding the error.

APIs that do not return a data object, provide the disposition report.

SOAPException is thrown if a communication error occurs or if the resulting data cannot be parsed as a valid SOAP message.

View the file 4.8.1.1.1: UDDI4J Samples for API usage examples.

For more information, visit the UDDI4J open source site at oss.software.ibm.com/developerworks/projects/uddi4j.

Go to previous article: Web services components Go to next article: UDDI4J samples

 

 
Go to previous article: Web services components Go to next article: UDDI4J samples