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
- From the
Solution Explorer, expand the
BookREST project's
json folder.
- Right-click the
BookREST.json file; then select
Generate Web Service from the context menu.
- 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>.
- In the
Generate group, select the
Service radio button.
- In the
Program group, check
CICS.
- 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
- 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.
- Using Windows
File Explorer or at a command prompt, change to the
BookREST project directory.
- Copy or move the
BookREST.wsbind file from the
json\BookREST directory to the
loadlib directory.