e-docs > WebLogic Server > Programming WebLogic Web Services > Publishing and Finding Web Services Using UDDI |
Programming WebLogic Web Services |
Publishing and Finding Web Services Using UDDI
The following sections provide information about publishing and finding Web services using UDDI:
UDDI stands for Universal Description, Discovery and Integration. The UDDI Project is an industry initiative that is working to enable businesses to quickly, easily, and dynamically find and carry out transactions with one another.
A populated UDDI registry contains cataloged information about businesses, the services that they offer and communication standards and interfaces they use to conduct transactions.
Built on the Simple Object Access Protocol (SOAP) data communication standard, UDDI creates a global, platform-independent, open architecture space that will benefit businesses.
The UDDI registry can be broadly divided into two categories:
For details about the UDDI data structure, see UDDI Data Structure.
The owners of Web Services publish them to the UDDI registry. Once published, the UDDI registry maintains pointers to the Web Service description and to the service.
The UDDI allows clients to search this registry, find the intended service and retrieve its details. These details include the service invocation point as well as other information to help identify the service and its functionality.
Web Service capabilities are exposed through a programming interface, and usually explained through Web Services Description Language (WSDL). In a typical publish-and-inquire scenario, the provider publishes its business, registers a service under it and defines a binding template with technical information on its Web Service. The binding template also holds reference to one or several tModels, which represent abstract interfaces implemented by this Web Service. The tModels might have been uniquely published by the provider, with information on the interfaces and URL references to the WSDL document.
A typical client inquiry may have one of two objectives:
As a Business Registry solution, UDDI enables companies to advertise the business products and services they provide, as well as how they conduct business transactions on the Web. This use of UDDI has the potential of fueling growth of business-to-business (B2B) electronic commerce.
The minimum required information to publish a business is a single business name. Once completed, a full description of a business entity may contain a wealth of information, all of which helps to advertise the business entity and its products and services in a precise and accessible manner.
A Business Registry may contain the following:
The data structure within UDDI is comprised of four constructions: a businessEntity structure, a businessService structure, a bindingTemplate structure and a tModel structure.
The following table outlines the difference between these constructions when used for Web Service or Business Registry applications.
Weblogic Server provides the following UDDI features:
The UDDI Directory Explorer allows authorized users to publish Web services in private WebLogic Server UDDI registries and to modify information for previously published Web services.
The UDDI Directory Explorer also enables you to search both public and private UDDI registries for Web services and information about the companies and departments that provide these Web services. The Directory Explorer also provides access to details about the Web services and associated WSDL files (if available.)
Invoking the UDDI Directory Explorer
To invoke the UDDI Directory Explorer in your browser, enter the following URL:
http://host:port/uddiexplorer
You can perform the following tasks with the UDDI Directory Explorer:
For more information about using the UDDI Directory Explorer, click the Help link on the main page.
Use the UDDI client API in a Java client application to search for and publish Web Services.
The two main classes of the UDDI client API are Inquiry and Publish. Use the Inquiry class to search for Web Services in a known UDDI registry and the Publish class to add your Web Service to a known registry.
WebLogic Server provides an implementation of the following client UDDI API packages:
For detailed information on using these packages, see the UDDI API Javadocs.
For examples of using the UDDI client API, go to the Web Services dev2dev Download Page and scroll down until you find the following examples: