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, click the InvokeReverseJSON project to select it.
  2. Click File > New > CICS Web Service. This starts the New CICS Web Service Wizard.
    Note: If CICS Web Service is not listed, select Other; then locate and select CICS Web Service.
  3. Under Service type, select JSON message processing.
  4. 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.

  5. In the Service name field, type invkRevJ; then click Next.
  6. Click the Browse button that corresponds to the JSON schema field.
  7. Navigate to and select the reverse.json file, located in your project's schema folder.
  8. In the Output artifacts group, type REQ into the Request file prefix field.
  9. Click the Browse button that corresponds to the Bundle field.
  10. Navigate to your project directory.
  11. Click New Folder.
  12. Name the new folder bundles; then press Enter.
  13. Double-click the bundles folder.
  14. Using the same method as before, create a new folder under bundles named REQBNDL.
  15. Select the REQBNDL folder; then press Enter.
  16. Click Select Folder.
  17. In the JSON transform field, type REVREQUEST; then click Next.
  18. Click the Browse button that corresponds to the JSON schema field.
  19. Navigate to and select the reverse.json file, located in your project's schema folder.
  20. In the Response file prefix field, type RESP.
  21. Click the Browse button that corresponds to the Bundle field.
  22. Navigate to your project's bundles directory.
  23. Using the same method as before, create a new directory under bundles named RESPBNDL.
  24. Select the RESPBNDL folder; then press Enter.
  25. Click Select Folder.
  26. 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\
jsbinds\reverse.json
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, it's 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.