WebSphere Adapter for FTP

Testing tutorial 6: Inbound with data transformation

In this tutorial, you will generate an inbound event that is processed using data transformation. You will also see how to confirm the results of the operation.

  1. In the Business Integration perspective of WebSphere® Integration Developer, right-click the FTPInboundModule module and click Open With > Assembly Editor.
  2. Select the Properties tab and click Binding > End-point configuration.
  3. Select Connection and expand Activation Spec Properties.
  4. Specify the Event Content Type. For example: text/xml.
  5. Configure file splitting based on a delimiter:
    1. Specify Splitting Function Class Name as com.ibm.j2ca.utils.filesplit.SplitByDelimiter.
    2. Specify Split Criteria as ####;\n.
      This image is described in the surrounding text.
      Connection configuration window showing Split Criteria
  6. Click File > Save.
  7. Right-click the FTPInboundModule project from the navigation panel and select Test > Attach. This attaches the integration test client to the EIS export.
  8. Create a *.txt file in the eventdirectory, containing customer data, to trigger an inbound event. For example:
    <?xml version="1.0" encoding="UTF-8"?>
    <customer:Customer xsi:type="customer:Customer" xmlns:xsi="http://www.w3.org
    /2001/XMLSchema-instance" xmlns:customer="http://www.ibm.com/xmlns/prod/
    websphere/j2ca/ftp/customer">
      <CustomerName>Michele</CustomerName>
      <Address>Da Vinci Ave.</Address>
      <City>NewYork</City>
      <State>NY</State>
    </customer:Customer>
    ####
    <?xml version="1.0" encoding="UTF-8"?>
    <customer:Customer xsi:type="customer:Customer" xmlns:xsi="http://www.w3.org
    /2001/XMLSchema-instance"xmlns:customer="http://www.ibm.com/xmlns/prod/
    websphere/j2ca/ftp/customer">
      <CustomerName>John</CustomerName>
      <Address>Grade A Colony</Address>
      <City>California</City>
      <State>CA</State>
    </customer:Customer>
    ####
  9. Click Continue to run the service and test the inbound module.
  10. In the Select Deployment Location window, select WebSphere Process Server v6.0 and click Finish.
  11. Verify in the log and trace files that two business objects were posted to the end point. Log and trace files are located in the install_root/profiles/profile_name/logs/server_name folder.

Terms of use |

Last updated: Mon 30 Oct 2006 03:48:53

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)