Test the loanPaym Web Service Provider

Provides instructions and the code required to send a JSON POST request to test the loanPaym Web service provider.

Now that you have your Web service provider running with all of its resources active, you are ready to send a JSON request to run the Web service. You can do this using any JSON requester tool.

  1. Create a JSON POST request that contains the following:
    {
     "LOANPAYM" :
     {
      "LOANINP" :
      {
       "principal" : "5000",
       "loanterm" : "36",
       "rate" : "5.5"
      }
     }
    }
  2. Submit the JSON request to the following endpoint URL:

    http://localhost:5639/cics/services/loanPaym

    You should receive the following JSON response:

    {"loanpaymResponse": {"LOANOUT": {"monthlyPayment": "$150.97"}}}

This concludes the tutorial.