Creating an Initial Partner Link and File Adapter Service

To create an initial partner link and file adapter service:

  1. Double-click the MyCorrelationSet BPEL process.
  2. In the Components window, expand BPEL Constructs.
  3. Drag an initial Partner Link activity into the right swimlane of the designer.
  4. Click the third icon at the top (the Service Wizard icon). This starts the Adapter Configuration Wizard, as shown in Figure 9-15.

    Figure 9-15 Adapter Configuration Wizard Startup

    Description of Figure 9-15 follows
    Description of "Figure 9-15 Adapter Configuration Wizard Startup"
  5. In the Configure Service or Adapter dialog, select File and click OK.
  6. In the Name field of the File Adapter Reference dialog, enter a name (for this example, FirstReceive is entered) and click Next.
  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 and click Next. The Operation Name field is automatically filled in with Read.
  9. Above the Directory for Incoming Files (physical path) field, click Browse.
  10. Select a directory from which to read files (for this example, C:\files\receiveprocess\FirstInputDir is selected).
  11. Click Select.
  12. Click Next.
  13. In the File Filtering dialog, enter appropriate file filtering parameters.
  14. Click Next.
  15. In the File Polling dialog, enter appropriate file polling parameters.
  16. Click Next.
  17. In the Messages dialog, click Browse next to the URL field to display the Type Chooser dialog.
  18. Select an appropriate XSD schema file. For this example, Book1_4.xsd is the schema and LoanAppl is the schema element selected.
  19. Click OK.

    The URL field (Book1_4.xsd for this example) and the Schema Element field (LoanAppl for this example) are filled in.

  20. Click Next.
  21. Click Finish.

    You are returned to the Partner Link dialog. All other fields are automatically completed. The dialog looks as shown in Table 9-6:

    Table 9-6 Partner Link Dialog Fields and Values

    Field Value

    Name

    FirstReceive

    WSDL URL

    directory_path/FirstReceive.wsdl

    Partner Link Type

    Read_plt

    Partner Role

    Leave unspecified.

    My Role

    Read_role

  22. Click OK.