Click OK. In the Service Name field of the Service Name dialog, enter SecondFileRead

Invoking an Asynchronous Web Service from a BPEL Process 8-19 To create a third partner link and file adapter service: 1. Drag a third PartnerLink activity beneath the SecondReceive partner link activity.

2. At the top, click the third icon the Service Wizard icon.

3. In the Configure Service or Adapter dialog, select File Adapter and click OK.

4. In the Welcome dialog, click Next.

5. In the Adapter Type dialog, select File Adapter and click Next.

6. In the Service Name field of the Service Name dialog, enter ThirdFileRead and

click Next. This name must be unique from the one you entered in Step 7 on page 8-16 and Step 6 of Section 8.5.1.2.2, Creating a Second Partner Link and File Adapter Service.

7. In the Adapter Interface dialog, accept the default settings and click Next.

8. In the Operation dialog, select Read File as the Operation Type.

9. In the Operation Name field, change the name to Read2. This name must be

unique.

10. Click Next.

11. Select Directory Names are Specified as Physical Path.

12. Above the Directory for Incoming Files physical path field, click Browse.

13. Select a directory from which to read files for this example, C:\files\receiveprocess\ThirdInputDir is entered.

14. Click Select.

15. Click Next.

16. Enter appropriate file filtering parameters in the File Filtering dialog.

17. Click Next.

18. Enter appropriate file polling parameters in the File Polling dialog.

19. Click Next.

20. Next to the URL field in the Messages dialog, click Browse to display the Type

Chooser dialog.

21. Select an appropriate XSD schema file. For this example, Book1_6.xsd is the

schema and CustResponse is the schema element selected. 22. Click OK. The URL field Book1_6.xsd for this example and the Schema Element field CustResponse for this example are filled in. 23. Click Next. 24. Click Finish. You are returned to the Partner Link dialog. All other fields are automatically completed. The dialog looks as shown in Table 8–4 : Table 8–4 Partner Link Dialog Fields and Values Field Value Name ThirdReceive 8-20 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

25. Click OK.

8.5.1.3 Step 3: Creating Three Receive Activities

You now create three receive activities; one for each partner link. The receive activities specify the partner link from which to receive information.

8.5.1.3.1 Creating an Initial Receive Activity

To create an initial receive activity: 1. Expand BPEL Constructs in the Component Palette. 2. Drag a Receive activity beneath the receiveInput receive activity in the designer. 3. Double-click the receive icon to display the Receive dialog. 4. Enter the details described in Table 8–5 to associate the first partner link FirstReceive with the first receive activity: The Operation Read field is automatically filled in. 5. To the right of the Variable field, click the first icon. This is the automatic variable creation icon.

6. In the Create Variable dialog, click OK.

A variable named receiveFirst_Read_InputVariable is automatically created in the Variable field.

7. Ensure that you selected the Create Instance checkbox, as mentioned in Step 4.

8. Click OK.

8.5.1.3.2 Creating a Second Receive Activity

To create a second receive activity: 1. From the Component Palette, drag a second Receive activity beneath the receiveFirst receive activity.

2. Double-click the receive icon to display the Receive dialog.

WSDL URL directory_pathThirdFileRead.wsdl Partner Link Type Read2_plt Partner Role Leave unspecified. My Role Read2_role Table 8–5 Receive Dialog Fields and Values Field Value Name receiveFirst Partner Link FirstReceive Create Instance Select this checkbox. Table 8–4 Cont. Partner Link Dialog Fields and Values Field Value