Configuring the FTP endpoint for the Parse Directory Listing Example

To run the Parse Directory Listing Example in your environment, configure the values of the configuration properties used by the FTP Endpoint to point to your FTP Server. In addition, your FTP Server must produce the directory listing in the same format as expected by the Flat File Schema.

About this task

Complete following steps only if you plan on running the Parse Directory Listing Example:

To only view and learn more about the example, complete the procedure in the Parse Directory Listing Example section.

Edit and test the FTP configuration properties of the FTPParseDirListingExample in Studio: 

Procedure

  1. Open FTPParseDirListingExample. For instructions see steps 1-2 in Parse Directory Listing Example.
  2. From the toolbar menu, select Project > Configuration Properties. The Configuration Properties dialog box is displayed.
  3. Edit the values of the properties to reflect your FTP Server.
  4. In the Project tab, double-click the FTP Endpoint. The FTP Endpoint tab is displayed.
  5. To verify that you entered the correct FTP information, click Test. If Studio connects to your FTP Endpoint, an Information dialog box is displayed with the message that you have successfully connected to the endpoint.
  6. In the Project tab, double-click on the processBids orchestration. The processBids orchestration tab is displayed.

What to do next

Configure the root directory of the FTP Server:

  1. Add the additional directories to your FTP Server. Mirror the directory structure and also provided in the FTPServerDirStructure directory. If you accepted the defaults during the installation of Studio, this directory is located in the following location: C:\Program Files\IBM\WebSphere Cast Iron Studio 3.X\Samples\FTPParseDirListing\FTPServerDirStructure
    During run time, the Parse Directory Listing Example expects the root directory of the FTP Server to contain the following directory structure:
    \input
    \processFailed
    \processWidgetRUs
    \processAcmeInc
    \processNewCompany
  2. Move a copy of the bid*.txt files to the \input directory on your FTP Server. If you accepted the defaults during the installation of Studio, these files provided in the following directory location: C:\Program Files\IBM\WebSphere Cast Iron Studio 3.X\Samples\FTPParseDirListing\FTPServerDirStructure\input
    Before running the example, a copy of the following files must be located in the \input directory of the FTP Server.
    • bidAcmeInc.txt
    • bidCrankCo.txt
    • bidWidgetRUs.txt
    • bidBudgetManufacture.txt
    • bidSamAndSons.txt

Determine if your FTP Server generates the file listing in the same format as the Flat File Schema included in this example:

  1. Open FTPParseDirListingExample. For instructions see steps 1-2 in Parse Directory Listing Example.
  2. In the Project tab, double-click the processBids orchestration. The processBids orchestration tab is displayed.
  3. Click the FTP List Files activity labeled List Files Full Dir Listing.
  4. Click Test.
  5. Determine if the format of the directory listing matches the following directory listing:
    -rw-r--r--   1 551      551            65 May  3 11:39 bidAcmeInc.txt
    -rw-r--r--   1 551      551            43 May  3 11:39 bidBudgetManufacture.txt
    -rw-r--r--   1 551      551             0 May  3 11:39 bidCrankCo.txt
    -rw-r--r--   1 551      551            73 May  3 11:39 bidSamAndSons.txt
    -rw-r--r--   1 551      551            33 May  3 11:39 bidWidgetRUs.txt
    If the directory format is different, you can alter the Flat File Schema called parseDirListing.
CAUTION:
Changing the nodes of the Flat File Schema may affect other entities in the orchestration. You may need to update the orchestration to reflect these changes.
For more information, see Flat File Schema Editor Overview.

To open the Flat File Schema used in this example, in the Project tab, double-click on the parseDirListing in the Flat File Schema folder. Copy and paste the output of the Test button of the FTP List Files activity to a file and then open the file in the Test tab of the Flat File Schema Editor. Change the nodes of the Flat File Schema to reflect the directory listing. The size node is used by the "If size less or equal 0" branch of the If..Then activity. Make sure a value is provided for the size node during run time.

Run the FTPParseDirListingExample:

  1. From Studio, publish the FTPParseDirListingExample project. From the Studio toolbar, select File > Publish Project... .

  2. From the Web Management Console (WMC), deploy the FTPParseDirListingExample project. For more information, see the WMC Online help or Step 11: Publish and Deploy the Completed Integration Project in the Developing the BookOrder Project section of the Getting Started Guide.




Feedback | Notices


Timestamp icon Last updated: Wednesday, 15 June 2016


http://pic.dhe.ibm.com/infocenter/wci/v7r0m0/topic/com.ibm.wci.doc/Configuring_the_FTP_Endpoint_for_the_Parse_Directory_Listing_Example.html