WebLogic UDDI Client API Instance Learning (i)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.