Wsdl Binding
# WSDL Binding
* * *
WSDL binding defines message formats and protocol details for web services.
* * *
## Binding to SOAP
An example of a request-response operation:
## Example
The _binding_ element has two attributesβname attribute and type attribute.
The name attribute defines the name of the binding, while the type attribute points to the port used for the binding; in this example, it's the "glossaryTerms" port.
The _soap:binding_ element has two attributesβstyle attribute and transport attribute.
The style attribute can be either "rpc" or "document". In this example, we use document. The transport attribute defines the SOAP protocol to be used. In this example, we use HTTP.
The _operation_ element defines the operations provided by each port.
For each operation, the corresponding SOAP behavior needs to be defined. At the same time, you must specify how to encode the input and output. In this example, we use "literal".
YouTip