Home TOC |
![]() ![]() ![]() |
Using the Command Line Client Scripts with the Registry Server
You will find a shell script called
<JWSDP_HOME>
/samples/registry-server/registry-server-test.sh
(on UNIX systems) or<JWSDP_HOME>\samples\registry-server/registry-server-test.bat
(on Microsoft Windows systems).The script uses XML files in the
xml
subdirectory to send messages to the Registry Server.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 thexml
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.xml
in thexml
subdirectory.- Before you run the script this time, edit this file by copying the
businessKey
value 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 thexml
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 theSaveBusiness.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>
Home TOC |
![]() ![]() ![]() |