Step 8. Map Parameters to Program Variables for Employees

INT010A - JSON Service - Define Server-side logic

In this step, you will map the parameters you created earlier to the program variable names that you will use in the program that implements this web service.

1.  Map the parameters:

a.  Click on the Mapping tab.

b.  Select and right click on the Employees to open the context menu.

c.  Click on Fragment.

d.  Click on surname.  Select Field from the content menu and enter the corresponding program variable name, in this case SURNAME, and click OK. Leave Format blank.

     The mapped program variable names you entered are shown in brackets after the parameter name. Note that the icon has changed to indicate that this parameter is mapped.

2.  Repeat this procedure for the second parameter, salary. Select Field from the context menu and map to the program variable name SALARY.

     Note how the variable name is shown with the parameter name and that the icon has changed.

3. Repeat this procedure for the third parameter, firstname. Select Field from the context menu and map to the program variable name GIVENAME.

4.  Repeat this procedure for the fourth parameter, employeeID. Select Field from the context menu and map to the program variable name EMPNO.

5.  Click on the Employee […] and edit the name.  Change the value to EMPLOYEE.

6.  Save your changes.