The WebLogic UDDI Directory Explorer


WebLogic Server 7.0 provides a basic browser-based tool for keeping a private registry of Web services and their WSDL files. The out-of-the-box WebLogic Examples server, by default, implements a UDDI operator at

 
 http://localhost:7001/uddi/uddilistener 

The UDDI operator is deployed as a J2EE Web application in uddi.war , and the UDDI Explorer as uddiexplorer.war , both in

 
 <  wl_home  >\weblogic700\samples\server\config\examples\examplesServer\.internal 

The UDDI Explorer, by default, is set to point to this listener. It uses the official UDDI API client proxy exclusively when inquiring or publishing to a private registry. That is, it actually sends UDDI SOAP messages to the Examples server that implements a Private UDDI operator, or to any public UDDI operator in your list. In addition, it uses the WebLogic UDDI client proxy classes Inquiry and Publish for generating all SOAP messages and parsing all SOAP responses from the operator.

The UDDI Explorer utilizes a simple and intuitive hierarchy of projects and services, as shown in Figure 31.3.

Figure 31.3. How the UDDI Explorer organizes services.

graphics/31fig03.gif

At the top level are one or more projects or departments, which can own multiple Web services as well as contacts. Contacts are not associated with any particular service, but to a project. Changes to your private registry require authorization via a username and password.

The following sections discuss how to create, edit, and manage these objects. The UDDI Explorer can also serve as a "Registry of Registries"; it can maintain a list of public registries (links) for your searching convenience.

This approach basically implements a registry of WSDL files, unlike the more comprehensive UDDI framework, which is a flexible, generic mechanism for categorizing services using any taxonomic system you choose and with any service description format (not just WSDL) you need.

Running UDDI Explorer

You can invoke the UDDI Explorer by doing the following:

  1. At a DOS command prompt, start the WebLogic Examples server by invoking the start script:

       
      <  wl_home  >\weblogic700\samples\server\config\examples\startExamplesServer.cmd  
  2. Go to the following URL:

       
      http://localhost:7001/uddiexplorer  

Figure 31.4 shows the WebLogic UDDI Explorer home page.

Figure 31.4. The WebLogic UDDI Explorer home page.

graphics/31fig04.gif

The actions available on the left pane are as follows :

  • Search Public Registries Allows you to perform searches using various search parameters such as businessName and key on external public service registries not hosted by WebLogic. You must maintain the list of public registries to search on, via the Setup UDDI Directory Explorer page, discussed below. WebLogic does not cache or mirror any information found in these sites; rather, it merely functions like a search engine. Obviously, you need Internet connectivity to run these searches.

  • Search Private Registry Provides a starting point for finding existing projects and services.

  • Publish Private Registry Provides a quick link for adding new services and contacts. You are required to log in to access these pages. The out-of-the-box username/password combination for the WebLogic Examples server is weblogic/weblogic unless your system administrator has changed it.

  • Modify Private Registry Details Allows you to add new projects and edit existing projects. From here, you can also manage services and contacts (add, delete, modify). You are required to log in to access these pages. See the preceding bullet.

  • Setup UDDI Directory Explorer Allows you to select the private registry you want to browse or manage and maintain a list of public UDDI registries on which you want to be able to perform searches using this UDDI Explorer.

Creating Entries in a Private Registry

The following steps show how to create a project called Orders, add a service called Payments, and add a contact:

  1. Invoke the UDDI Explorer.

  2. Click the Modify Private Registry Details link on the left pane of the UDDI Explorer. Log in with the username/password combination weblogic/weblogic.

  3. When the Modify Private Registry page appears, enter Orders in the Add New Project column and click the Add button (see Figure 31.5). When Orders appears in the list of projects, click the Orders link.

    Figure 31.5. Add new project page.

    graphics/31fig05.gif

  4. The Add New Services and Contacts page then appears (see Figure 31.6). If there were any existing services or contacts, they are listed under Services List or Contacts List, respectively, each a live link enabling you to edit the existing item. Fill in the necessary fields for the new service and click Add New Service. You will need to come back to this page and add the contact later.

    Figure 31.6. Add new services or contacts page.

    graphics/31fig06.gif

  5. When the Add New Service Confirmation page appears, click the Publish button; otherwise , the new service will not be added.

Table 31.3 outlines tasks that can be performed on projects and links to the pages for accomplishing them.

Table 31.3. Links to Follow to Accomplish Project Tasks

Task

Links to Navigate

Get a list of existing projects

Click Modify Private Registry Details.

Add a new project

Click Modify Private Registry Details; then click Add.

Edit a project name

Click Modify Private Registry Details; then click Edit Name.

Delete a project

Click Modify Private Registry Details; then click Remove.

Work on services for a project

Click Modify Private Registry Details; then click the project name.

Table 31.4 outlines tasks that can be performed on Services and Contacts and links to the pages for accomplishing them.

Table 31.4. Links to Follow to Accomplish Service and Contact Tasks

Task

Links to Navigate

Get a list of existing services or contacts

Click Modify Private Registry Details; then click a project.

Add a new service or contact

Click Modify Private Registry Details, click a project, and then click Add Service. Alternatively, click Publish to Private Registry.

Edit a service or contact

Click Modify Private Registry Details, click a project, and then click a service.

Delete a service or contact

Click Modify Private Registry Details, click a project, and then click Remove.

Browse a service

Click Search Private Registry, select List All Services, and then click the service name.



BEA WebLogic Platform 7
BEA WebLogic Platform 7
ISBN: 0789727129
EAN: 2147483647
Year: 2003
Pages: 360

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net