Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this step, you will create three text files and save them in the Tutorial folder:

...


\\<SRV400>\LICComposer\lic\Tutorial

  1. Use Notepad to create the Request CSV sample file. This file will contain a list of these employee numbers:
  2. noformat

  3.      EmployeeNumber
         100066
         100554
         101375

  4. 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
    titleNote
  5. Note: 
  6. Although the file is a Comma Separated File (CSV), you will not see commas because there is only one data column.
  7. In a similar way, create the Response XML sample. The contents of  iiiTUTEMPDET.xml will be like this:

  8. code


  9. <?xml

  10. version="1.0"

  11. encoding="UTF-8"?>


  12. <!DOCTYPE

  13. Employees

  14. SYSTEM

  15. "iiiTUTEMPDET.dtd" 

  16. >


  17. <Employees>


  18.   <Employee>


  19.     <EmployeeNumber>100066</EmployeeNumber>


  20.     <LastName>Coleman</LastName>


  21.     <FirstName>Briar</FirstName>


  22.   </Employee>


  23.   <Employee>


  24.     <EmployeeNumber>100554</EmployeeNumber>


  25.     <LastName>Dixon</LastName>


  26.     <FirstName>Reed</FirstName>


  27.   </Employee>


  28. </Employees>


    Note
    titleNote
    Change the iii in <!DOCTYPE Employees SYSTEM "iiiTUTEMPDET.dtd"  > to your initials.
  29. 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.
  30. Create the response DTD file. The DTD file is used to describe the tags of XML files:


  31. code


  32. <!ELEMENT

  33. Employees

  34. (Employee)>


  35. <!ELEMENT

  36. Employee

  37. (EmployeeNumber,FirstName,LastName,Address1,Address2,Address3,PostCode,Department)>


  38. <!ELEMENT

  39. EmployeeNumber

  40. (#PCDATA)>


  41. <!ELEMENT

  42. LastName

  43. (#PCDATA)>


  44. <!ELEMENT

  45. FirstName

  46. (#PCDATA)>


  47. <!ELEMENT

  48. Address1

  49. (#PCDATA)>


  50. <!ELEMENT

  51. Address2

  52. (#PCDATA)>


  53. <!ELEMENT

  54. Address3

  55. (#PCDATA)>


  56. <!ELEMENT

  57. PostCode

  58. (#PCDATA)>


  59. <!ELEMENT

  60. Department

  61. (#PCDATA)>


  62. Save the file as iiiTUTEMPDET.dtd  ensuring that the filename extension is preserved.

    Note
    titleNote
    This file's name must be the same name as specified in the DOCTYPE in the xml file just created.