SOAP messages need to be bound to a WSDL document by including the soap:binding element within the WSDL binding element.
- The soap:binding element takes two attributes, transport and style.
- The syntax to include the soap:binding element within the WSDL binding element is:
<binding name="BindingName" type="InterfaceName">
<soap:binding
transport= "http://schemas.xmlsoap.org/soap/http"
style="rpc|document"/>
...
</binding>
where the transport attribute indicates the transport protocol, such as HTTP or SMTP, and the style attribute specifies the format of the message.
In the code snippet, http://schemas.xmlsoap.org/soap/http indicates that the transport protocol is HTTP and the format of the message is RPC. |