To create a CICS Web Service provider using the bottom-up method, JSON
In Visual Studio, create or open a Mainframe Subsystem Application project that contains a CICS COBOL application.
From the Solution Explorer, right-click the project; then click
Add >
New Item.
In the left pane, expand
COBOL > Native; then click
Mainframe Subsystem.
In the center pane, click
Service Interface.
In the
Name field, type a name for the service interface; then click
Add.
On the Service Interface dialog box, select
Web Service from the
Type of interface drop-down list.
Check
CWS-type.
Select the
JSON transport type.
From the
Type of source drop-down list, select either
CICS Commarea or
CICS Channel depending on the type of source contained in your CICS application.
Click
OK.
Enterprise Developer creates the service interface, adds it to the project, and loads it into the
Interface Mapper.
In the Interface Mapper, click
OPERATION > New.
In the
Name field, type a name for the operation.
Check both
Create Default Mappings boxes.
Complete the other fields as required to select the program/copybook and input/output structures. See
Operation Properties - CICS Web Services - General tab for a description of each field.
Click
OK.
Click
File > Save All to save the completed operation.
Optionally close the
Interface Mapper.
In the Solution Explorer, right-click the service interface (.svi) file; then select
Generate WSBIND from the context menu.
Enterprise Developer generates a WSBIND file and a set of request and response JSON files, and adds them to the project.