Now that you have your Web service provider running with all of its resources active, you are ready to interact with the Web service. You can do this using any JSON requester tool.
http://localhost:5639/cics/services/BookREST/1111
You should receive the following JSON response:
{"book": {"lnk_b_details": { "lnk_b_text_details": { "lnk_b_title": "LORD OF THE RINGS", "lnk_b_type": "FANTASY", "lnk_b_author": "TOLKIEN" }, "lnk_b_stockno": "1111", "lnk_b_retail": 15, "lnk_b_onhand": 4000, "lnk_b_sold": 3444 }}}
http://localhost:5639/cics/services/BookREST
{"book": {"lnk_b_details": { "lnk_b_text_details": { "lnk_b_title": "HARRY POTTER", "lnk_b_type": "FANTASY", "lnk_b_author": "ROWLING" }, "lnk_b_stockno": "5555", "lnk_b_retail": 20, "lnk_b_onhand": 6000, "lnk_b_sold": 4555 }}}
You should receive a response of 00 to show that the record has been added successfully.
You should receive a response that matches the JSON you sent in the PUT request.
This concludes the tutorial.