Several directories are used for the retrieval and storage
of files. An input file is used for testing.
Create
the following directories on your file system (assuming a Windows
operating system):
- Create a c:\flatfiles directory.
- Create the following subdirectories in the flat files directory.
- c:\flatfiles\inboundevents
- c:\flatfiles\inboundarchive
- c:\flatfiles\outputdir
Linux users: Create
a similar file structure using the Linux file
system.
- Create the following customer.txt file
and add it to the c:\flatfiles directory. When
you test the application, you can copy it to the c:\flatfiles\inboundevents directory.
The application will delete it from this directory when it processes
it.
Note that the namespace value SeparateCustomers must
match the module name you will create in the next section.
<?xml version="1.0" encoding="UTF-8"?>
<p:Customer xsi:type="p:Customer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://SeparateCustomers">
<customerName>John Doe</customerName>
<Address>170 Baseline Ave</Address>
<City>Ottawa</City>
<State>ON</State>
</p:Customer>
####
<p:Customer xsi:type="p:Customer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://SeparateCustomers">
<customerName>Susan Kidman</customerName>
<Address>104 Candlestick Park</Address>
<City>Ottawa</City>
<State>ON</State>
</p:Customer>
####
<p:Customer xsi:type="p:Customer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://SeparateCustomers">
<customerName>Katheleen Black</customerName>
<Address>530 Chanticler Road</Address>
<City>Ottawa</City>
<State>ON</State>
</p:Customer>
####
<p:Customer xsi:type="p:Customer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://SeparateCustomers">
<customerName>Gary White</customerName>
<Address>793 Morin Street</Address>
<City>Ottawa</City>
<State>ON</State>
</p:Customer>
####