Generate LOANPAYM Web Service Components

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.

  1. From the Solution Explorer in Visual Studio, right-click the LoanJSON 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, select Web Service from the Type of interface drop-down list.
  6. Check CWS-Type.
  7. 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.

  8. 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 Enterprise Developer 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, select 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 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:

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