Generate loanPaym Web Service Components

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.

  1. From the Solution Explorer, right-click the LoanDEMO project; then click Add > New Item.
  2. In the left pane, expand COBOL > Native; then click Mainframe Subsystem.
  3. In the center pane, click Service Interface.
  4. In the Name field, type loanPaym; then click Add.
  5. 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.

  6. Click OK.

    Enterprise Developer creates the service interface and loads it into the Interface Mapper.

Define a Service Interface

  1. With the Interface Mapper in focus, click Operation > New from the Visual Studio main menu.
  2. In the Operation Name field, type LoanOperation.
  3. In the Select program/copybook box, select loanPaym.
  4. In the Select input data area box, click loanPaym(2).
  5. In the Select output data area box, select loanPaym(3).
  6. CICS Web Services always use default mappings; therefore, be sure that both Create Default Mappings check boxes are checked (default).
  7. Click OK to create the LoanOperation operation.
  8. Click File > Save loanPaym.svi to save the completed operation.

Generate and move the loanPaym.wsbind file

  1. 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.

  2. Using Windows File Explorer or at a command prompt, change to the LoanDemo project directory.
  3. 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.