WSDL Binding
- Previous Page WSDL Port
- Next Page WSDL and UDDI
WSDL bindings can define message formats and protocol details for web services.
Bound to SOAP
One Request - Response Example of operation:
<message name="getTermRequest"> <part name="term" type="xs:string" /> </message> <message name="getTermResponse"> <part name="value" type="xs:string" /> </message> <portType name="glossaryTerms"> <operation name="getTerm"> <input message="getTermRequest" /> <output message="getTermResponse" /> </operation> </portType> <binding type="glossaryTerms" name="b1"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> <operation> <soap:operation soapAction="http://example.com/getTerm" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding>
binding The element has two attributes - the name attribute and the type attribute.
The name attribute defines the name of the binding, and the type attribute points to the port used for the binding, which is the "glossaryTerms" port in this example.
soap:binding The element has two attributes - the style attribute and the 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.
operation The element defines the operators 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 input and output. In this example, we use "literal".
- Previous Page WSDL Port
- Next Page WSDL and UDDI