Generate InvokeReverseJSON Requester Components

Provides step-by-step instructions to generate all components of the InvokeReverseJSON CICS Web service requester.

Use the New CICS Web Service wizard to generate the components of your Web service requester.

  1. From the Application Explorer view, right-click the InvokeReverseJSON project, and select New > Interface > CICS Web Service. This starts the New CICS Web Service Wizard.
  2. Under Service type, select JSON message processing.
  3. From the drop-down list, select CICS Web Service Requester (Top-Down, Linkable Interface); then click Next.

    The Project field is already populated with the name of the current project, InvokeReverseJSON.

  4. In the Service name field, type invkRevJ; then click Next.
  5. Click the Browse button that corresponds to the JSON schema field.
  6. Navigate to and double-click the reverse.json file, located in your project's schema folder.
  7. In the Output artifacts group, type REQ into the Request file prefix field.
  8. Click the Browse button that corresponds to the Bundle field.
  9. Navigate to your project directory.
  10. On the Select a folder for the request bundle dialog box, double-click the bundles folder.
  11. Select the REQBNDL folder, and then click Open.
  12. In the JSON transform field, type REVREQUEST; then click Next.
  13. Click the Browse button that corresponds to the JSON schema field.
  14. Navigate to and select the reverse.json file, located in your project's schema folder.
  15. In the Output artifacts group, type RESP into the Response file prefix field.
  16. On the Select a folder for the response bundle dialog box, double-click the bundles folder.
  17. Select the RESPBNDL folder, and then click Open.
  18. In the JSON transform field, type REVRESPONSE; then click Finish.

Enterprise Developer generates the following CICS Web Service components:

REQ01.CPY
A COBOL copybook that contains the request data structure.
RESP01.CPY
A COBOL copybook that contains the response data structure.
bundles/REQBNDL
The JSON schema that describes the request data structure.
jsbinds/REVREQUEST.jsbind
The JSON binding file that used to transform the COBOL request data into JSON.
META-INF/cics.xml
A manifest file that defines the type of bundle, it's location, and filename. In this case, the type is JSONTRANSFRM and its name is REVREQUEST.
REVREQUEST.log
A log file that contains information about the content of the REVREQUEST.jsbind file. This log file can be useful to Micro Focus Customer Care to help diagnose problems should they arise.
bundles/RESPBNDL
jsbinds/reverse.json
The JSON schema that describes the response data structure.
jsbinds/REVRESPONSE.jsbind
The JSON binding file that used to transform the COBOL response message into COBOL.
META-INF/cics.xml
A manifest file that defines the type of bundle, its location, and filename. In this case, the type is JSONTRANSFRM and its name is REVRESPONSE.
REVRESPONSE.log
A log file that contains information about the content of the REVRESPONSE.jsbind file. This log file can be useful to Micro Focus Customer Care to help diagnose problems should they arise.