When you do either of the following tasks, a partner link type is automatically generated.
Create a WSDL file from scratch.
Create a port type.
(Optional) To add a second role, do the following:
Right-click the partner link type node and choose Add -> role.
If the Properties window is not visible, choose Window -> Properties.
Select the role.
(Optional) Change the default name.
Specify the port type.