Service Registry 3.1 Update 1 Developer's Guide

ProcedureTo Run the JAXRSearchByExternalIdentifier Example

Before You Begin

To obtain results from this example, first run the publish-object example described in Adding Classifications: Example.

  1. Go to the directory install/registry-samples/search-external-identifier.

  2. Type the following command:


    Ant-base/ant run
    

    The output of the run target looks something like this:


    run:
         [java] Query URL is http://localhost:6480/soar/registry/soap
         [java] Publish URL is http://localhost:6480/soar/registry/soap
         [java] Created connection to registry
         [java] Got registry service, query manager, and lifecycle manager
         [java] Searching by external identifier with name=%Sun% and value=SUNW in 
    scheme NASDAQ
         [java] Object type is Organization
         [java] Object name: GenericOrg
         [java] Object description: Generic organization
         [java] Object identifier: urn:uuid:f23cffcd-23d2-4171-ba41-f2d1547158f8
         [java]   External identifier name is Sun
         [java]   External identifier value is SUNW
         [java]   External identifier classification scheme is NASDAQ
         [java]  ---