Service Registry 3.1 Update 1 Developer's Guide

Creating an Extrinsic Object: Example

For an example of creating an extrinsic object, see JAXRPublishExtrinsicObject.java in the directory install/registry-samples/publish-extrinsic/src. This example publishes an XML file to the Registry (its own build.xml file).

ProcedureTo Run the JAXRPublishExtrinsicObject Example

  1. Go to the directory install/registry-samples/publish-extrinsic.

  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] Established security credentials
         [java] Got registry service, query manager, and life cycle manager
         [java] Created ExtrinsicObject from build.xml
         [java] Concept value: XML
         [java] Classification scheme is ObjectType
         [java] Set object type to XML
         [java] Set MIME type to text/xml
         [java] Extrinsic object saved
         [java] Object key is urn:uuid:9a85749f-5652-4e0c-b412-ab1dba4e454a