Page History
In this step, you will create three text files and save them in the Tutorial folder:
| Code Block |
|---|
\\<SRV400>\LICComposer\lic\Tutorial |
- Use Notepad to create the Request CSV sample file. This file will contain a list of these employee numbers:
| No Format |
|---|
EmployeeNumber
100066
100554
101375 |
Save the file using the Save as type: All Files option so that you can specify the CSV file extension. Give it a name such as iiiTUTEMPNO.csv.
Note title Note Note: Although the file is a Comma Separated File (CSV), you will not see commas because there is only one data column. In a similar way, create the Response XML sample. The contents of iiiTUTEMPDET.xml will be like this:
Code Block <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Employees SYSTEM "iiiTUTEMPDET.dtd" > <Employees> <Employee> <EmployeeNumber>100066</EmployeeNumber> <LastName>Coleman</LastName> <FirstName>Briar</FirstName> </Employee> <Employee> <EmployeeNumber>100554</EmployeeNumber> <LastName>Dixon</LastName> <FirstName>Reed</FirstName> </Employee> </Employees>Note title Note Change the iii in <!DOCTYPE Employees SYSTEM "iiiTUTEMPDET.dtd" > to your initials. - Save the file as iiiTUTEMPDET.xml. Once again ensure you use the Save as type: All Files option to ensure Notepad saves the file with the .xml extension.
Create the response DTD file. The DTD file is used to describe the tags of XML files:
Code Block <!ELEMENT Employees (Employee)> <!ELEMENT Employee (EmployeeNumber,FirstName,LastName,Address1,Address2,Address3,PostCode,Department)> <!ELEMENT EmployeeNumber (#PCDATA)> <!ELEMENT LastName (#PCDATA)> <!ELEMENT FirstName (#PCDATA)> <!ELEMENT Address1 (#PCDATA)> <!ELEMENT Address2 (#PCDATA)> <!ELEMENT Address3 (#PCDATA)> <!ELEMENT PostCode (#PCDATA)> <!ELEMENT Department (#PCDATA)>Save the file as iiiTUTEMPDET.dtd ensuring that the filename extension is preserved.
Note title Note This file's name must be the same name as specified in the DOCTYPE in the xml file just created.