In the Project Name field, enter CustomerRouterProject and click Next. From the Composite Template list, select Empty Composite and then click Finish.

Creating Oracle Mediator Routing Rules 19-51 Figure 19–39 Adapter Configuration Wizard – Messages page

20. Click Next.

The Finish page is displayed.

21. Click Finish.

22. From the File menu, select Save All.

19.3.1.4 Task 4: How to Create a File Adapter Reference

You must create a USCustomer file adapter reference. To create a file adapter reference: 1. From the Component Palette, select SOA. 2. Select File Adapter and drag it to the External References swimlane. The Adapter Configuration wizard Welcome page is displayed.

3. Click Next.

The Service Name page is displayed.

4. In the Service Name field, enter USCustomer.

5. Click Next.

The Adapter Interface page is displayed.

6. Select Define from operation and schema specified later and click Next.

The Operation page is displayed.

7. Click Next.

The Operation page is displayed.

8. In the Operation Type field, select Write File.

19-52 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

9. In the Operation Name field, enter WriteFile.

10. Click Next.

The File Configuration page is displayed.

11. In the Directory for Outgoing Files physical path field, enter the name of the

directory in which you want to write the files. For example, C:\Customer\out.

12. In the File Naming Convention field, enter customer_SEQ.xml and click

Next . The Messages page is displayed.

13. To the right of the URL field, click Search.

The Type Chooser dialog is displayed.

14. Click Import Schema File.

The Import Schema File dialog is displayed.

15. To the right of the URL field, click Search and select the USCustomer.xsd file

present in the Samples folder. 16. Click OK. 17. Expand the navigation tree to Type Explorer\Imported Schemas\USCustomer.xsd , and then select Customer. 18. Click OK. 19. Click Next. The Finish page is displayed.

20. Click Finish.

21. From the File menu, click Save All.

Create another file adapter reference named CanadaCustomer in a similar way by using the CanCustomer.xsd file. Figure 19–40 shows how the SOA Composite Editor appears after performing this task.