Web Services - WSDL: Bindings



PHP Web Services Using WSDL Step By Step Tutorial - Part 6: A Binding specifies concrete details about a portType and a protocol. We can use three types of bindings in WSDL 1.1: SOAP, HTTP, and MIME. In this tutorial, we use SOAP bindings only.
  <binding name="HelloBinding" type="tns:HelloPort">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
	  <operation name="doHello">
	    <soap:operation soapAction="urn:HelloAction" />
		<input>
		  <soap:body use="encoded" namespace="urn:Hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />		  
		</input>
		<output>
		  <soap:body use="encoded" namespace="urn:Hello" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />		  
		</output>
	  </operation>
  </binding>

To simply, look this picture:

php webservices WSDL portType and Messages

Next, we will talk about services.



Series this article:
Web Services - WSDL: Anatomy of WSDL Document
Web Services - WSDL: Sample WSDL Document
Web Services - WSDL: Types
Web Services - WSDL: Messages
Web Services - WSDL: Port Types
Web Services - WSDL: Bindings
Web Services - WSDL: Service
Web Services - WSDL: Creating SOAP Server
Web Services - WSDL: Testing with SOAP Client


Tag: web services, wsdl, binding Category: PHP Application Post : April 10th 2008 Read: 2,847 Bookmark and Share

blog comments powered by Disqus