Sun POJO Service Engine User's Guide

ProcedureTo Invoke a POJO Service from a Business Process

Before You Begin

This task requires that the POJO service being called is already created. For information on creating a POJO service, see Creating POJO Service Engine Projects.

  1. Create the business process with any necessary activities and WSDL documents.

    For more information about creating business processes, see the BPEL Designer and Service Engine User’s Guide.

  2. Add an Invoke activity to the point in the business process where you want to invoke the POJO service.

  3. Drag the WSDL document from the POJO project in the Projects window to the right partner link panel of the BPEL Editor.

    Figure shows dropping the POJO WSDL document
in the BPEL Editor.

    The Create New Partner Link dialog box appears.

  4. Modify the partner link information, or accept the default values.

    Figure shows the Create New Partner Link dialog
box.
  5. Click OK.

  6. In the business process, double-click the Invoke activity.

    The activity Properties Editor appears.

  7. Define the information for the partner link, as shown in the example below.

    Figure shows the Property Editor for an Invoke
activity.
  8. Click OK.

    A connection appears between the Invoke activity and the partner link from the POJO project.

    Figure shows the completed business process invoking
a POJO service.