Provides step-by-step instructions to generate all required components of the
LOANPAYM Web service from the
LoanJSON project.
Create a Service Interface
Map the input and output data areas of the loanPaym program.
- From the
Solution Explorer in Visual Studio, right-click the
LoanJSON project; then click
Add >
New Item.
- In the left pane, expand
COBOL > Native; then click
Mainframe Subsystem.
- In the center pane, click
Service Interface.
- In the
Name field, type
LOANPAYM; then click
Add.
- On the Service Interface dialog box, select
Web Service from the
Type of interface drop-down list.
- Check
CWS-Type.
- Under
Transport Type, click
JSON.
The loanPaym program contains a COMMAREA interface; therefore, you can accept the default setting in the
Type of source field.
- Click
OK.
Enterprise Developer creates the service interface and loads it into the
Interface Mapper.
Define a Service Interface
- In the
Interface Mapper, right-click
Operation at the top of the right pane, and select
New from the context menu.
- In the
Operation Name field, type
LoanOperation.
- In the
Select program/copybook box, select
LOANPAYM.
- In the
Select input data area box, select
LOANPAYM(2).
- In the
Select output data area box, select
LOANPAYM(3).
- CICS Web Services always use default mappings; therefore, be sure that both
Create Default Mappings check boxes are checked (default).
- Click
OK to create the
LoanOperation operation.
- Click
File > Save LOANPAYM.svi to save the completed operation.
- Close the
Interface Mapper.
Generate and move the
LOANPAYM.wsbind file
- From the
Solution Explorer, right-click
LOANPAYM.svi; then select
Generate WSBIND.
Because the
LOANPAYM.wsbind file is generated in the
LoanJSON project's root directory, but the output path is set to the project's
loadlib directory, you need to move the file from the
LoanJSON root directory to the project's
loadlib directory:
- Using Windows
File Explorer or at a command prompt, change to the
LoanJSON project directory.
- Copy or move
LOANPAYM.wsbind from the
LoanJSON directory to the
LoanJSON\loadlib directory.
Build the LoanJSON project
- From the
Solution Explorer, right-click the
LoanJSON project; then select
Build.