The JavaTM Web Services Tutorial
Home
TOC
PREV TOP NEXT

Using the Indri Tool to Access the Registry Server Database

The Indri tool provides a graphic user interface (GUI) that allows you to access the Registry Server database directly. You can use this tool to save and find businesses and to obtain business details.


Note: The Indri is a large lemur. It is reported that when Europeans first arrived in Madagascar, they heard its cry from the trees and asked what was making that sound. The reply was "Indri! Indri!" which is Malagasy for "Look up! Look up!" This seems an appropriate name for a database lookup tool.

You invoke the Indri tool through the registry-server-test script. Use the following command:

registry-server-test.sh run-indri (UNIX systems)	
registry-server-test.bat run-indri (Microsoft Windows systems)
 

To save a business, perform the following steps.

  1. Open the file SaveBusiness.xml in the xml subdirectory. Edit it if you wish.
  2. Copy the contents of the file and paste them into the large text area labeled Node.
  3. Choose Check Content from the Process menu and verify that the message
       document is well-formed
     
    
    appears in the status area at the bottom of the Indri window.
  4. In the Collection panel on the top left side of the Indri window, make sure uddi is selected.
  5. Choose Create Node from the Database menu. The message
       node 'nid' in collection 'uddi' created
     
    
    appears in the status area.

To obtain business details, perform the following steps:

  1. Select Clear Text Area from the Database menu to clear the Node text area.
  2. Select Get Node from the Database menu. The XML code you submitted when you saved the business appears in the text area.

To find a business by name, perform the following steps:

  1. Select Clear Text Area from the Database menu to clear the Node text area.
  2. Copy the following string into the XPath Query text field. If necessary, replace "Alter" with a string that appears in the name of the business you saved.
       //uddi:businessEntity/uddi:name[contains(text(),"Alter")]
     
    
  3. Click Find.
  4. Check the status area for a message like the following:
       query complete: 1 matches.
     
    
  5. If there are any matches, select a node from the XNodes panel on the bottom left side of the Indri window. The content of the node appears in the Node area.

To exit the Indri tool, choose Exit from the File menu.

Home
TOC
PREV TOP NEXT