For an example of finding objects by external identifier, see JAXRSearchByExternalIdentifier.java in the directory install/registry-samples/search-external-identifier/src, which searches for objects that use the NASDAQ classification scheme.
To obtain results from this example, first run the publish-object example described in Adding Classifications: Example.
Go to the directory install/registry-samples/search-external-identifier.
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] ---
|