Testing the scenario with a REST Client browser plug-in

Testing of the web service on the CICS® Transaction Gateway can be done with any REST Client application or the REST Client browser plug-in.

Procedure

  1. Set the HTTP header Content-Type and Accept to application/json
  2. Set the HTTP payload to {"EC03Operation":{ "INPUTDATA": "testing data" }}
  3. Post the JSON payload to http://<CICS TG host name>:2080/EC03

Results

The response headers should be:
 Status Code: 200 OK
 Content-Length: 150
 Content-Type: application/json
 Date: Wed, 02 Apr 2014 16:15:24 GMT
 X-Powered-By: Servlet/3.0
The raw response body should be:
{"EC03OperationResponse":{"OUTPUTMESSAGE":"Input data was: testing data","INPUTDATALENGTH":{"inputlength":12},"CICSDATETIME":"02\/04\/2014 17:15:24"}}