When developing a UDDI client program, we generally consider IBM-provided uddi4j, but we do not know that we are not aware of it, and also provide a very handy UDDI client API in Bea's WebLogic. It is only included in the Weblogic.jar file and not published separately. The architecture of the WebLogic UDDI Client API is fully compliant with the UDDI architecture, so learning and practicing this API class library is believed to help us better understand the architecture of UDDI.
The foundation of inquiry and publish
The UDDI Registry operates in two broad categories: Query and publish (delete). So WebLogic defines two classes that correspond to the query and publish operations: Inquiry classes are used for queries, and publish classes are used for publishing. These two classes are in the Weblogic.uddi.client.service package, and they all inherit from the Uddiservice class. A URL attribute is defined in the Uddiservice class that holds the URL address of the query or publication.
The inquiry and publish classes set their query or publishing address through the SetUrl method of the parent class Uddiservice.
Query Inquiry
There are four categories of target queries to the UDDI registry: Commercial Entities (businessentity), Business Services (businessservice), binding template information (bindingtemplate), and tmodel. Let's look at the methods in the inquiry class, and it's not hard to see that these four kinds of target queries are corresponding to the four find methods in the inquiry class:
It consists of two types of methods find and get, where the found method is used for finding and discovering, and the Getting class method is used to obtain detailed information.
The four find methods correspond to four queries, and five get methods correspond to the four data models of UDDI definition (two methods for commercial entities).
The step of a general query is to get the basic information of the data model through the Find method and a unique identifier key. You can then call the Get method for the details of the model based on this key.
Business entity (businessentity) query
The inquiry class-defined Findbusiness method combines the Getbusinessdetail method to query various information about business entities in the UDDI registry database.