Provides step-by-step instructions to generate all required components of the
loanPaym Web service from the
LoanDemoJSON project.
Use the
New CICS Web Service wizard to generate the components of your Web service provider.
Create the LoanDemoJSON Web service
- In the
Application Explorer view, expand
Enterprise Developer > Enterprise Development Projects.
- Right-click the
LoanDemoJSON project, and then select
New > Interface > CICS Web Service from the context menu.
- Under
Service type, select
JSON message processing.
- From the drop-down list, select
CICS Web Service Provider (Bottom-Up, Request-Response); then click
Next.
The
Project field is already populated with the name of the current project,
LoanDemoJSON.
- Click the
Browse button that corresponds to the
Source file field.
- Navigate to and select the
LOANPAYM.cbl file, located in the
LoanDemoJSON folder; then click
OK.
- In the
Service location field, type
/cics/services/json/loanpaym.
- Select
COMMAREA from the
Program interface drop-down list; then click
Next.
Identify request and response structures
In the
Mapping group, you specify the copybooks that contain request and response data structures.
- Click the
Browse button that corresponds to the
Request copybook field.
- Navigate to and select the
LOANINP.cpy file, located in the
LoanDemoJSON folder; then click
OK.
- Similarly, find and select the
LOANOUT.cpy file to populate the
Response copybook field.
- Click
Finish.