L.7.2 Test the Service using the Java Command-line Test Program

To test this service using the Java command-line test program, follow these steps:

  1. Create the required JSON and populate the appropriate parameters. Save it in a file (Request.json)
  2. Open Command Line and navigate to the location of the JSON files.
  3. Run the command mentioning the relevant web service and the JSON file.

    Example: java -jar FTPWSClient.jar Request.json <RESTFUL_URL>

Note:

"EC" in the above command indicates you are calling the getEconomicCostWithParameters program for this web service. A value of "TP" would indicate you are calling the getTPRate program.