Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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 .aar and the refresh/reload the page.

Running the service

 

  1. From the terminal go to <AS_HOME>\samples\Trader directory.

  2. Execute one of the following commands to run the client:

    OSCommand
    MS Windowsrun-client.bat [ -qos (rm | secure | securerm)] [-te <TraderService URL>] [-ee <ExchangeService URL> ]
    Unix/Linuxrun-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:

...