To create a CICS Web Service provider using the bottom-up method, JSON

  1. In Visual Studio, create or open a Mainframe Subsystem Application project that contains a CICS COBOL application.
  2. From the Solution Explorer, right-click the project; then click Add > New Item.
  3. In the left pane, expand COBOL > Native; then click Mainframe Subsystem.
  4. In the center pane, click Service Interface.
  5. In the Name field, type a name for the service interface; then click Add.
  6. On the Service Interface dialog box, select Web Service from the Type of interface drop-down list.
  7. Check CWS-type.
  8. Select the JSON transport type.
  9. 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.
  10. Click OK.

    Enterprise Developer creates the service interface, adds it to the project, and loads it into the Interface Mapper.

  11. In the Interface Mapper, click OPERATION > New.
  12. In the Name field, type a name for the operation.
  13. Check both Create Default Mappings boxes.
  14. 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.
  15. Click OK.
  16. Click File > Save All to save the completed operation.
  17. Optionally close the Interface Mapper.
  18. 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.