...
Note: Attributes of Stock Quote are name, symbol, selling price, high price and low price
Building the sample
The sample is located in in <AS_HOME>\Samples\Trader Trader
directory.
For more information, see Building Axis2 Samples .
...
Info |
---|
If you do not see the services deployed, wait for a while for the deployment engine of Axis2 to pick up the newly added |
Running the service
...
From the terminal go to
<AS_HOME>\samples\Trader
directory.Execute one of the following commands to run the client:
OS Command MS Windows run-client.bat [ -qos (rm | secure | securerm)] [-te <TraderService URL>] [-ee <ExchangeService URL> ] Unix/Linux run-client.sh [ -qos (rm | secure | securerm)] [-te <TraderService URL>] [-ee <ExchangeService URL> ]
...
- Login to the Application Server Management Console.
- Add a user (under configure menu -> Users and Roles) named "test" with password "test123."Similarly, add a role "testrole" and add user "bob" to that role.
- Similarly, add a role "testrole" and add user "test" to that role.
- Provide all permissions for this role.
- Then go to the "Deployed Services" window in the AS Management Console. (Manage > Service > List).
- Access the dashboard of the service "TraderClient" service by clicking on it.
- In the dashboard, under "Security," select "Username Token." Press "Next."
- Then select "testrole" from the user groups listed.
- Click "Finish."
Follow the same steps for ExchangeClient service. Then go to <AS_HOME>/samples/Trader
directory and type: ./run-client.sh -qos secureYou secure . You would see a prompt asking for the username and password before listing the operations available as follows:
...