Building and Running Demos

REGISTRY_HOMEdemosadvancedcustody UNIX: 3. Build demo using: run.bat make Windows: .run.sh make UNIX: Note When compiling demos on Windows platforms, you may see the following text: A subdirectory or file ..\..\common\.\build\classes already exists. This is expected and does not indicate a problem. 4. To get list of all available commands, run run.bat help Windows: .run.sh help UNIX: 5. The demo can be executed via the run command, using the name of the demo as a parameter. To run the Custody demo, invoke run.bat CustodyDemo Windows: .run.sh CustodyDemo UNIX: The output of this demo will resemble the following: Running CustodyDemo demo... Getting transfer token where Enter first user name [demo_john]: Enter password [demo_john]: Enter UDDI key [uddi:systinet.org:demo:departmentID]: Using Security at url https:mycomp.com:8443registryuddisecurity .. done Logging in .. done uddiKey = uddi:systinet.org:demo:departmentID Using Custody at url https:mycomp.com:8443registryuddicustody .. done Get in progress ... done TransferToken transferToken xmlns=urn:uddi-org:custody_v3 nodeID xmlns=urn:uddi-org:api_v3SystinetnodeID expirationTime2004-05-17T12:32:51.236+02:00expirationTime opaqueTokenZmZmZmZmZmZlMDVmZGEzNg==opaqueToken transferToken Logging out .. done Page 677

2.2.3. Building and Running Demos

Transfering custody where Enter second user name [demo_jane]: Enter password [demo_jane]: Logging in .. done Using Custody at url https:mycomp.com:8443registryuddicustody .. done Transfer in progress ... done Logging out .. done 6. To rebuild demos, execute run.bat clean .run.sh clean to delete the classes directory and run.bat make .run.sh make to rebuild the demo classes.

2.3. Subscription

The Oracle Service Registry advanced subscription demo set demonstrates the Oracle Service Registry application programming interfaces capabilities and shows how to use the Subscription API to perform subscription calls to the registry. The Oracle Service Registry advanced subscription demos cover the subscription aspects of the UDDI Version 3 Specification [http:www.oasis-open.orgcommitteesuddi-specdoctcspecs.htmuddiv3]. They teach how to use the Oracle Service Registry client API to create new subscriptions, get lists of subscriptions, get subscription results, and delete subscriptions. The Oracle Service Registry basic publishing demo set contains the following demos to assist you in learning the Oracle Service Registry client API: SaveSubscription Demonstrates how to construct and fill the Save_subscription object, get a Subscription stub for the UDDI registry, and perform the save_subscription call. GetSubscriptions Demonstrates how to construct and fill the Get_subscriptions object, get a Subscription stub for the UDDI registry, and perform the get_subscriptions call. GetSubscriptionResults Demonstrates how to construct and fill the Get_subscriptionResults object, get a Subscription stub for the UDDI registry, and perform the get_subscriptionResults call. DeleteSubscription Demonstrates how to construct and fill the Delete_subscription object, get a Subscription stub for the UDDI registry, and perform the delete_subscription call.

2.3.1. Prerequisites and Preparatory Steps: Code

We expect that you have already installed the Oracle Service Registry and set the REGISTRY_HOME environment variable to the registrys installation location. To run the Oracle Service Registrys demos, your registry must be running. It is necessary to configure the demos. The configuration system has two levels: global and local. The properties defined at the global level may be overwritten at the local level. The global properties are located in the file: REGISTRY_HOME\demos\env.properties Windows: REGISTRY_HOMEdemosenv.properties UNIX: The values set during the installation of the Oracle Service Registry work out of box, and their modification affects all demos. If you need to redefine the value of some property for a single demo that is, at the local level, edit env.properties. Page 678

2.3.1. Prerequisites and Preparatory Steps: Code

This file is located in the same directory as the file run.sh run.bat. Local level properties for the Subscription demos are loaded from the file: