Home | | Web Technology | WSDL Binding Element

Chapter: Web Technology : Web Services

WSDL Binding Element

The element provides specific details on how a portType operation will actually be transmitted over the wire.

WSDL Binding Element

 

The <binding> element provides specific details on how a portType operation will actually be transmitted over the wire.

 

The bindings provide concrete information on what protocol is being used to transfer portType operations.

 

The bindings provide information where the service is located.

 

For SOAP protocol, the binding is <soap:binding>, and the transport is SOAP messages on top of HTTP protocol.

 

soap:binding

 

 

This element indicates that the binding will be made available via SOAP. The style attribute indicates the overall style of the SOAP message format. A style value of rpc specifies an RPC format. The transport attribute indicates the transport of the SOAP messages.

 

soap:operation

 

This element indicates the binding of a specific operation to a specific SOAP implementation. The soapAction attribute specifies that the SOAPAction. HTTP header be used for identifying the service.

 

soap:body

 

This element enables you to specify the details of the input and output messages. In the case of HelloWorld, the body element specifies the SOAP encoding style and the namespace URN associated with the specified service.

 

Here is the piece of code from Example:

 

<binding name="Hello_Binding" type="tns:Hello_PortType"> <soap:binding style="rpc"

 

transport="uri"/>

 

<operation name="sayHello"> <soap:operation soapAction="sayHello"/> <input>

 

<soap:body encodingStyle="uri" namespace="uri" use="encoded"/>

 

</input>

<output>

 

<soap:body encodingStyle="uri" namespace="uri" use="encoded"/>

 

</output>

</operation>

</binding>

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
Web Technology : Web Services : WSDL Binding Element |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.