Designer > Participants > Partner Link Type
  

Partner Link Type

Create a standard BPEL activity, such as a receive, reply, or invoke. Add a partner link type definition to a new WSDL file or to an existing WSDL file.
A partner link type describes the kind of message exchange that two WSDL services intend to carry out. A partner link type characterizes this exchange by defining the roles played by each service and by specifying the port type provided by the service to receive messages appropriate to the exchange.
For an easy way to create and use partner link types and partner links, see What are Participants?.
A partner link type can include one role or two roles.
The following illustration shows an example of a partner link type defining two roles.
For example, a partner link type named AuctionHouse_Seller describes two roles: AuctionHouse and Seller. The AuctionHouse role supports a port type of Seller that expects an input message of an item for sale. The Seller role supports a port type Seller_Answer that expects an input message from the auction house, regarding whether or not the item has sold. The output message is the name of the item for sale.
In this example, the port types are from the same service; however, port types can be from different services.
The partner link type is a WSDL extension. It can specify one or two roles. The port types can be from the same or from different WSDL files.
A partner link type definition can come from the following sources:
You can add a new partner link type to a WSDL in the following ways:
These techniques are described in:

Adding a new Partner Link Type from a WSDL in Project Explorer

Use the following procedure to add a new partner link type from a WSDL in the project explorer:
  1. 1. Be sure that you have already imported a WSDL into an orchestration project. Typically, you import WSDL files into the standard wsdl folder.
  2. 2. Expand the WSDL to show the port type.
  3. 3. Right-mouse click on the port type and select Add to PartnerLink Type.
  4. 4. Complete the wizard that appears. For details, see Step 6 in Add a new Partner Link Type from Interfaces View.

Adding a new Partner Link Type to a new WSDL using a Service Reference WSDL

Use the following procedure to add a new parner link type to a new WSDL using a service reference WSDL:
  1. 1. Be sure that you have already imported a WSDL into the Service References folder of an orchestration project. This WSDL is a reference to a service already running on a server.
  2. 2. Expand the WSDL to show the port type.
  3. 3. Right-mouse click on the port type and select Add to PartnerLink Type.
  4. 4. Complete the wizard that appears. Note that you cannot add a partner link type to the existing remote WSDL. The wizard allows you to create a new WSDL that imports the service reference.

Add a new Partner Link Type from Interfaces View

Use the following procedure to add a new partner link type from Interfaces view:
  1. 1. Display the Interfaces view. This view is not part of the default perspective. To open it, select Window > Show View > Interfaces.
  2. 2. Ensure that the port type from the WSDL file you want to refer to is displayed in the list.
  3. 3. Expand a Port Type to display an operation you want to use, but does not have an associated Partner Link Type yet.
  4. 4. Select one of the following:
  5. 5. BPEL activity should be selected.
  6. 6. Drag the operation to the Process Editor canvas to open the Partner Link Type wizard, as shown.
  7. 7. Do one of the following
  8. 8. If you created a new Partner Link Type in Step 5, you can add it to an existing WSDL file or create a new file for the definition. Do one of the following:
  9. 9. Click Finish.
If you add the Partner Link Type definitions to a new WSDL, Process Developer automatically adds the WSDL to Project Explorer and to the Imports node in Outline view.