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.
- From the
Application Explorer view, click the
InvokeReverseJSON project to select it.
- 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.
- Under
Service type, select
JSON message processing.
- 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.
- In the
Service name field, type
invkRevJ; then click
Next.
- Click the
Browse button that corresponds to the
JSON schema field.
- Navigate to and select the
reverse.json file, located in your project's
schema folder.
- In the
Output artifacts group, type
REQ into the
Request file prefix field.
- Click the
Browse button that corresponds to the
Bundle field.
- Navigate to your project directory.
- Click
New Folder.
- Name the new folder
bundles; then press
Enter.
- Double-click the
bundles folder.
- Using the same method as before, create a new folder under
bundles named
REQBNDL.
- Select the
REQBNDL folder; then press
Enter.
- Click
Select Folder.
- In the
JSON transform field, type
REVREQUEST; then click
Next.
- Click the
Browse button that corresponds to the
JSON schema field.
- Navigate to and select the
reverse.json file, located in your project's
schema folder.
- In the
Response file prefix field, type
RESP.
- Click the
Browse button that corresponds to the
Bundle field.
- Navigate to your project's
bundles directory.
- Using the same method as before, create a new directory under
bundles named
RESPBNDL.
- Select the
RESPBNDL folder; then press
Enter.
- Click
Select Folder.
- 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.