Before you use the script, make sure it is executable (make it so if it is not).
-
Save a business.
To save a business, the script uses the file SaveBusiness.xml in the xml subdirectory. Edit this file if you wish.
To save the business, use the following command (on a UNIX system, add the .sh suffix):
registry-server-test run-cli-save
Output appears in the terminal window in which you run the command. Notice the businessKey value returned in the <businessEntity> tag. You will use it in step 2.
-
Obtain business details.
To obtain details about a business, the script uses the file GetBusinessDetail.xmlin the xml subdirectory.
Before you run the script this time, edit this file by copying the businessKeyvalue from the output of the command in step 1 into the <businessKey> tag.
To obtain details about the business you saved, use the following command:
registry-server-test run-cli-get
Output appears in the terminal window.
-
Find a business.
To find a business by name, the script uses the file FindBusiness.xml in the xml subdirectory.
Before you run the script this time, edit the file by changing the value in the <name> tag to the name you specified in the SaveBusiness.xml file.
To find the business, use the following command:
registry-server-test run-cli-find
Output appears in the terminal window.
You can create your own XML files to run with the script. To use the <save_business> message, specify the following in the <authInfo> tag:
<authInfo>magicCookie</authInfo>