Test the ReverseJSON Web Service Provider

Provides instructions and the code required to send a JSON request to test the ReverseJSON 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 request with the following endpoint URL:
    http://localhost:5639/cics/services/reverse
  2. Set the Method to POST.
  3. Enter the following JSON request:
    {"InputStrings":{"myString":"olleH"}}

    You should receive the following JSON response:

    {"OutputStrings": {"reversedString": "Hello"}}

This concludes the tutorial.