Service Registry 3.1 Update 1 Developer's Guide

ProcedureTo Run the JAXRSearchByClassification and JAXRSearchByCountryClassification Examples

Before You Begin

To obtain results from the JAXRSearchByCountryClassification example, you must publish an object that uses the specified classifications. Run the example in Adding Classifications: Example first.

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

  2. Type either of the following commands:


    Ant-base/ant search-class
    Ant-base/ant search-geo
    

    The search-class target typically returns one result:


    search-class:
         [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 classification with name=RegistryAdministrator and 
    value=RegistryAdministrator in scheme SubjectRole
         [java] Object type is User
         [java] Object name: Operator, Registry
         [java] Object description: null
         [java] Object key id: urn:freebxml:registry:predefinedusers:registryoperator
         [java] Object version: 1.0
         [java]   Classification name is RegistryAdministrator
         [java]   Classification value is RegistryAdministrator
         [java]   Classification scheme for RegistryAdministrator is SubjectRole
         [java]   Classification name is RegistryAdministrator
         [java]   Classification value is RegistryAdministrator
         [java]   Classification scheme for RegistryAdministrator is SubjectRole
         [java]  --- 

    The search-geo target returns results if you have run the run target in Adding Classifications: Example.


    search-geo:
         [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 classification with name=United States and value=US in scheme 
    iso-ch:3166:1999
         [java] Searching by classification with name=China and value=CN in scheme 
    iso-ch:3166:1999
         [java] Org name: GenericOrg
         [java] Org description: Generic organization
         [java] Org identifier: urn:uuid:f23cffcd-23d2-4171-ba41-f2d1547158f8
         [java]  Contact name: My  Name
         [java]   Phone number: +1 (111) 111-1111 (OfficePhone)
         [java]   Email Address: me@here.com
         [java]  ---