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
Program location 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.
Specify Web service details
Here you define mapping and output artifacts.
- 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 structure 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 structure field.
- Specify output artifacts
- In the
Output artifacts group, you specify names and locations for request and response schema files and the location for the WSBIND file.
- Click the
Browse button that corresponds to the
JSON request field.
- Navigate to your project directory.
- Click
New Folder.
- Name the new folder
schema; then press
Enter.
- Double-click the
schema folder to select it.
- In the
File name field, type
loanDemoReq; then click
Open.
- Click the
Browse button that corresponds to the
JSON response field.
- Navigate to the new
schema folder.
- In the
File name field, type
loanDemoResp; then click
Open.
- Click the
Browse button that corresponds to the
WSBIND file field.
- On the
Browse for WSBIND file dialog box, open the
loadlib folder.
- In the
File name field, type
loanPaym; then click
Open.
- Click
Finish.