Provides step-by-step instructions to generate all required components of the loanPaym Web service from the LoanDemo project.
Create a Service Interface
Map the input and output data areas of the loanPaym program.
- From the
Solution Explorer, right-click the
LoanDEMO project; then click
Add >
New Item.
- You might see the basic
Add New Item dialog box that does not show any item templates. Click
Show All Templates.
- 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, check
CWS-Type.
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
- With the
Interface Mapper in focus, click
from the Visual Studio main menu.
- In the
Operation Name field, type
LoanOperation.
- In the
Select program/copybook box, select
loanPaym.
- In the
Select input data area box, click
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.
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
LoanDemo project's root directory, but the output path is set to the project's
loadlib directory, you need to move the file from the
LoanDemo root directory to the project's
loadlib directory.
- Using Windows
File Explorer or at a command prompt, change to the
LoanDemo project directory.
- Copy or move
loanPaym.wsbind from the
LoanDemo directory to the
LoanDemo\loadlib directory.
Build the LoanDemo project
- From the
Solution Explorer, right-click the
LoanDemo project, and then select
Build from the context menu.