Generate BookREST Web Service Components

Provides step-by-step instructions that guide you through the process of generating all components of the BookREST RESTful JSON CICS Web service provider.

Generate CICS Web Service provider components

  1. From the Solution Explorer, expand the BookREST project's json folder.
  2. Right-click the BookREST.json file; then select Generate Web Service from the context menu.
  3. In the Generate Web Service dialog box, ensure that BookREST.json populates the (For request) field, and that the (For response) field is set to <None>.
  4. In the Generate group, select the Service radio button.
  5. In the Program group, check CICS.
  6. Click OK.

Enterprise Developer generates the following CICS Web service components in the json/BookREST project folder:

BookREST.cbl
A skeleton CICS program.
BookREST.svi
A service interface.
BookR01.cpy
A copybook containing data structures. This file appears as a subfolder under json/BookREST.cbl.

Generate and move the BookREST.wsbind file

  1. In the Solution Explorer, right-click the BookREST.svi file; then select Generate WSBIND.

    Because the BookREST.wsbind file is generated to the BookREST project's json\BookREST directory, but the output path is set to the BookREST project's loadlib directory, you need to move the file from the project's json\BookREST directory to the project's loadlib directory so that Enterprise Server finds the correct file.

  2. Using Windows File Explorer or at a command prompt, change to the BookREST project directory.
  3. Copy or move the BookREST.wsbind file from the json\BookREST directory to the loadlib directory.