WSDL bindings are represented in Enterprise Architect by UML Classes stereotyped as WSDLbinding. Bindings should be defined under the Bindings package in the WSDL namespace structure. Each WSDLbinding Class implements the operations specified by a particular WSDLportType interface. Therefore, WSDLportTypes should be defined before creating WSDLbindings.
To define new WSDLbinding elements for your namespace, follow the steps below:
- Open the Overview diagram defined for your WSDL namespace package, and double-click on the Bindings package to open the Bindings diagram.
- Drag the Binding element from the Toolbox onto the diagram. The WSDL Binding dialog displays.
- Type in a Name for the Binding.
- Select the PortType for the Binding; the drop-down list of PortTypes is taken from those defined in the PortTypes package.
- Select the Protocol for the Binding, either http or soap.
- For SOAP Bindings, enter the Transport URL and select the Style. For http Bindings, select the Verb.
- Click on the OK button to close the WSDL Binding dialog and create the binding. A realization connector is created between the binding and the corresponding Port Type interface.
- To specify the Binding operations, select and double-click on an Operation in the Binding element. The WSDL Binding Operation Details dialog displays.
- Type in or select the Binding Operation details.
- Click on the Parameters button. The WSDL Binding Operation Parameters dialog displays. For each input, output and fault, click on the Details button and enter the details.
- Click on the OK button on each of the WSDL Binding Parameter Details, WSDL Binding Operation Parameters and WSDL Binding Operation Details dialogs to close them.
You can edit the WSDL-specific properties of the binding later by double-clicking the binding Class in the diagram or Project Browser. Alternatively, on the WSDL Binding dialog, click on the UMLbutton to invoke the standard Properties dialog for a Class. (This button does not display on the initial WSDL Binding dialog for a new Binding element.)