In this step, you will write the XML to SEND (server) and RECEIVE (client) the response with the department descriptions. The client function only requires a response consisting of a list of department descriptions; however, the department code and the department description will also be sent back in order to make the RDMLX code smaller and simpler. The structure of the response XML is the same as the request XML.
<?xml version="1.0" encoding="UTF-8"?>
<DepartmentListResponse>
<ReverseString>ABCDEFG</ReverseString>
<Department>
<Code>ADM</Code>
</Department>
<Department>
<Code>FLT</Code>
</Department>
</DepartmentListResponse>
Modify your XML so that the department description is also exchanged. Insert a department description tag within the <Department> tag. Call the tag <Description>.
Your XML might appear as follows:
<?xml version="1.0" encoding="UTF-8"?>
<DepartmentListResponse>
<ReverseString>ABCDEFG</ReverseString>
<Department>
<Code>ADM</Code>
<Description>Administration Dept</Description>
</Department>
<Department>
<Code>FLT</Code>
<Description>Fleet Administration</Description>
</Department>
</DepartmentListResponse>
Using the File menu, select the Save As option as specify the file as iiiPRO05_response.xml. Save it to the folder XML List Response.