In this step, you will use the XML Bind Wizard to create the outbound response binding iiiPRO06_response.jar on the server. In this binding, the list of Employee Skills will be represented with a list, but the list of Employees will be defined as a fragment, in order to avoid nested lists. The Employee fragment will be written multiple times in the RDMLX code.
The EmployeeList root tag and the Employee tag need to be marked as fragments
EmployeeSkill needs to be marked as a list
Code, FullName, and SkillDesc need to be mapped to specific LANSA fields.
The Employee fragment will be written repeatedly in the RDMLX code.
To do this, map the Employee details as follows:
Right click on the EmployeeList root tag. Select Fragment from the pop-up menu.
Right click on the Employee tag. Select Fragment from the pop-up menu.
Right click on the Code tag and select Edit. Enter EMPNO for the Name and click OK.
Right click on the FullName tag and select Edit. Type FULLNAME for the Name and click OK.
Right click on either of the EmployeeSkill tags and select List.
Expand the EmployeeSkill tags to see their sub-tags. Right click or double click on either of the SkillDesc tags to edit them. Enter SKILDESC for the Name and click OK.
Your XML Binding should look like the following: