Step 2. Create XML iiiPRO06_response.xml
INT008 - Department & Employee Server
In this step, you will create the response XML to be sent from the server and received by the User Agent. The XML will represent of a list of employees with their Employee Numbers, Given Names, and Surnames. There will be a list of skills for each employee.
1. In your iii Training Studio project, create a new solution group Server XML Employees Response.
2. Select group
and use the right mouse menu to create aa. Select
from the dropdownb.
should already containc. Enter File name iiiPRO06_response
d. Copy the following to replace the default code in the editor.
<?xml version="1.0" encoding="UTF-8"?>
<EmployeeList>
<Employee>
<Code>A001</Code>
<FullName>Fred Bloggs</FullName>
<EmployeeSkill>
<SkillDesc>COBOL Programming</SkillDesc>
</EmployeeSkill>
<EmployeeSkill>
<SkillDesc>RPG Programming</SkillDesc>
</EmployeeSkill>
</Employee>
<Employee>
<Code>A002</Code>
<FullName>Joe Smith</FullName>
<EmployeeSkill>
<SkillDesc>C++ Introduction</SkillDesc>
</EmployeeSkill>
<EmployeeSkill>
<SkillDesc>Help Desk Management</SkillDesc>
</EmployeeSkill>
</Employee>
</EmployeeList>
3. Notice the structure of this XML document. It has a list of employees. Each employee has details (Code and Full Name) as well as a list of skills.
4. Save your new XML and close the text editor.