In the WSDL definition, WCF includes namespaces for both SOAP 1.1. and SOAP 1.2. The namespace for SOAP 1.1 has the soap prefix. The SOAP 1.1 endpoint will only use this namespace:
<wsdl:binding name="SomeBinding" type="..."> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetTime"> <soap:operation soapAction="..." style="..." /> <wsdl:input name="..."> <soap:body use="..." /> </wsdl:input> <wsdl:output name="..."> <soap:body use="..." /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="..."> <wsdl:port name="..." binding="tns:SomeBinding"> <soap:address location="..." /> </wsdl:port> </wsdl:port>
Do you see all these items with the soap prefix? This means that SOAP 1.1, because the soap prefix is โโdefined for the SOAP 1.1 namespace. If the soap12 prefix is โโused soap12 , this will mean SOAP 1.2.
If the WCF service has several endpoints, it will have several wsdl:port elements, each of which can refer to its own wsdl:binding specification with a different version of SOAP and different policies (I skipped the policy links in the example).
BasicHttpBinding in WCF always uses SOAP 1.1.
source share