Designing the SOA Composite

4-178 Oracle Fusion Middleware Users Guide for Technology Adapters

9. Copy the invoice-nxsd.xsd and po.xsd files to the schema directory in your project

see Section 4.5.8.1, Prerequisites for the location of these files.

10. Copy InvToPo.xsl to the xsl directory of your project see

Section 4.5.8.1, Prerequisites for the location of this file.

4.5.8.3 Creating the Inbound Oracle File Adapter Service

Perform the following steps to create an inbound Oracle File Adapter service to read the file from a local directory:

1. Drag and drop File Adapter from the Component Palette to the Exposed Services

swim lane. The Adapter Configuration Wizard Welcome page is displayed.

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

3. Enter Complex Structure In in the Service Name field.

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

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

Operation page is displayed.

6. Select Read File, and click Next. The File Directories page is displayed.

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

page is displayed.

8. Enter .txt in the Include Files With Name Pattern field, click Next. The File

Polling page is displayed.

9. Click Next. The Messages page is displayed.

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

Chooser dialog is displayed.

11. Click Project Schema Files, invoice-nxsd.xsd, and invoice.

12. Click OK. The URL field in the Messages page is populated with the

invoice-nxsd.xsd file.

13. Click Next. The Finish page is displayed.

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

composite.xml appears, as shown in Figure 4–141 . Oracle JCA Adapter for FilesFTP 4-179 Figure 4–141 The JDeveloper - Composite.xml

4.5.8.4 Creating the Outbound Oracle File Adapter Service

Perform the following steps to create an outbound Oracle File Adapter service to write the file from a local directory to the FTP server: 1. Drag and drop the Oracle File 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 ComplexStructureOut in the Service Name field.

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

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

Operation page is displayed.

6. Select Write File, and click Next. The File Configuration page is displayed.

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

8. Click Next. The Messages page is displayed.

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

Chooser dialog is displayed.

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

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

12. Click Next. The Finish page is displayed.

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

composite.xml appears, as shown in Figure 4–142 .