Step 2. Create XML iiiPRO06_response.xml

INT007 - 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 Server XML Employees Response and right click to create a New Solution

a.      Select XML File Editor from the Tool dropdown

b.      Solution Group should already contain Server XML Employees Response

c.      Type iiiPRO06_response in the Solution File input field.  Click OK.

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.