Creating the Inbound Oracle File Adapter Service Creating the Outbound Oracle File Adapter Service

Oracle JCA Adapter for FilesFTP 4-159

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

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

4.5.6.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 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 AttachmentOut 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 attachment_

SEQ.doc in the File Naming Conventionpo_SEQ.txt field, as shown in Figure 4–60 .

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 WSDL Files, AttachmentIn.wsdl, Inline Schemas, and

attachmentElement , as shown in Figure 4–118 . 4-160 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 4–118 The Type Chooser Dialog

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

AttachmentIn.wsdl.

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–119 . Figure 4–119 The JDeveloper - Composite.xml

4.5.6.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: Oracle JCA Adapter for FilesFTP 4-161 1. Drag the small triangle in the AttachmentIn in the Exposed Services area to the drop zone that appears as a green triangle in the BPEL process in the Components area. 2. Drag the small triangle in the BPEL process in the Components area to the drop zone that appears as a green triangle in the AttachmentOut in the External References area. The JDeveloper composite.xml appears, as shown in Figure 4–120 . Figure 4–120 The JDeveloper - Composite.xml

3. Click File, Save All.

Add a Receive Activity 1. Double-click BPELAttachment. The BPELAttachment.bpel page is displayed. 2. Drag and drop a Receive activity from the Component Palette to the design area. 3. Double-click the Receive activity. The Receive dialog is displayed. 4. Enter ReceiveInput in the Name field. 5. Click Browse Partner Links at the end of the Partner Link field. The Partner Link Chooser dialog is displayed.

6. Select AttachmentIn, as shown in

Figure 4–121 and click OK.