Creating the Inbound Oracle FTP Adapter Service

4-186 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 4–146 The Adapter Configuration Wizard FTP Server Connection Page

6. Click Next. The Operation page is displayed.

7. Select Get File, as shown in

Figure 4–147 , and click Next. The File Directories page is displayed. Figure 4–147 The Adapter Configuration Wizard Operation Page

8. Enter the physical path for the input directory, and click Next. The File Filtering

page is displayed. Oracle JCA Adapter for FilesFTP 4-187

9. Enter .txt in the Include Files With Name Pattern field, select Files Contain

Multiple Messages check box, specify 1 as the value for Publish Messages in Batches Of box.

10. Click Next. The File Polling page is displayed.

11. Click Next. The Messages page is displayed.

12. Click Browse For Schema File that appears at the end of the URL field. The Type

Chooser dialog is displayed.

13. Click Project Schema Files, container.xsd, and container.

14. Click OK. The URL field in the Messages page is populated with the container.xsd

file.

15. Click Next. The Finish page is displayed.

16. Click Finish. The inbound Oracle File Adapter is now configured and

composite.xml appears, as shown in Figure 4–148 . Figure 4–148 The JDeveloper - Composite.xml

4.5.9.4 Creating the Outbound Oracle FTP Adapter Service

Perform the following steps to create an outbound Oracle FTP Adapter service to write the file from a local directory to the FTP server: 1. Drag and drop the FTP Adapter from the Component Palette to the External References swim lane. The Adapter Configuration Wizard Welcome page is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter PurchaseOrderOut in the Service Name field.

4. Click Next. The Adapter Interface page is displayed.

4-188 Oracle Fusion Middleware Users Guide for Technology Adapters

5. Select Define from operation and schema specified later, and click Next. The

FTP Server Connection page is displayed.

6. Click Next. The Operation page is displayed.

7. Select Put File, and click Next. The File Configuration page is displayed.

8. Enter the physical path for the output directory and enter po_SEQ.txt in the File Naming Conventionpo_SEQ.txt field.

9. Select Number of Messages Equals option, if not already selected. The default

value is 1.

10. Click Next. The Messages page is displayed.

11. Click Browse For Schema File that appears at the end of the URL field. The Type

Chooser dialog is displayed.

12. Click Project Schema Files, po.xsd, and po.

13. Click OK. The URL field in the Messages page is populated with the po.xsd file.

14. Click Next. The Finish page is displayed.

15. Click Finish. The outbound Oracle File Adapter is now configured and

composite.xml appears, as shown in Figure 4–149 . Figure 4–149 The JDeveloper - Composite.xml

4.5.9.5 Wiring Services and Activities

You have to assemble or wire the three components that you have created: Inbound adapter service, BPEL process, Outbound adapter reference. Perform the following steps to wire the components: