BasicHttpBinding vs. WSHttpBindingI was using a WCF Cleitn and service, and I noticed that the BasicHttpBinding runs a bit faster than the WSHttpBinding.<br><br>What are the differences between the 2.<br><br>Why is BasicHttpBinding faster.<br><br>Do both do encryption, etc ?<br><br>What are the basic differences<br>© 2009 Microsoft Corporation. All rights reserved.Tue, 16 Dec 2008 12:54:48 Z75753f30-ff39-4b2d-9f80-2d9e85839f38http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#75753f30-ff39-4b2d-9f80-2d9e85839f38http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#75753f30-ff39-4b2d-9f80-2d9e85839f38WV Johnhttp://social.msdn.microsoft.com/Profile/en-US/?user=WV%20JohnBasicHttpBinding vs. WSHttpBindingI was using a WCF Cleitn and service, and I noticed that the BasicHttpBinding runs a bit faster than the WSHttpBinding.<br><br>What are the differences between the 2.<br><br>Why is BasicHttpBinding faster.<br><br>Do both do encryption, etc ?<br><br>What are the basic differences<br>Fri, 27 Oct 2006 21:09:38 Z2006-10-28T01:42:01Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#f803bb28-396b-449e-a556-1ff3e224199fhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#f803bb28-396b-449e-a556-1ff3e224199fAhmed Nagyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ahmed%20NagyBasicHttpBinding vs. WSHttpBinding<p>Hi;</p> <p>Basically, WSHttpBinding messaging is based on SOAP 1.2 and WS-Addressing Specifications while BasicHttpBinding messaging is based on SOAP 1.1 specifications. Implementing the WS-Addressing specifications enables more features in this binding like asynchronous messaging, message correlation, and transport-neutral addressing mechanisms which for sure adds some processing overhead.</p> <p>In addition, BasicHttpBinding provides fewer security options which are Message security, User name token,  Kerberos and X509 tokens. WSHttpBinding provides more in addition to the list above which are WS-Trust and WS Secure conversation.</p> <p>In Additions WSHttpBinding supports reliable messaging, atomic and distributed transactions.</p> <p>Some usefull URLs...</p> <p>Understanding WS-Addressing: <a title="http://msdn.microsoft.com/webservices/webservices/understanding/specs/default.aspx?pull=/library/en-us/dnglobspec/html/ws-addressing.asp" href="http://msdn.microsoft.com/webservices/webservices/understanding/specs/default.aspx?pull=/library/en-us/dnglobspec/html/ws-addressing.asp">http://msdn.microsoft.com/webservices/webservices/understanding/specs/default.aspx?pull=/library/en-us/dnglobspec/html/ws-addressing.asp</a></p> <p>WCF Security Breif: <a title="http://msdn.microsoft.com/msdnmag/issues/06/08/SecurityBriefs/default.aspx" href="http://msdn.microsoft.com/msdnmag/issues/06/08/SecurityBriefs/default.aspx">http://msdn.microsoft.com/msdnmag/issues/06/08/SecurityBriefs/default.aspx</a></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p>Fri, 27 Oct 2006 21:59:02 Z2008-05-29T08:30:41Zhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#7a938280-f7f7-4b24-baa4-c94916fec26fhttp://social.msdn.microsoft.com/Forums/en-US/wcf/thread/75753f30-ff39-4b2d-9f80-2d9e85839f38#7a938280-f7f7-4b24-baa4-c94916fec26fDave Bettinhttp://social.msdn.microsoft.com/Profile/en-US/?user=Dave%20BettinBasicHttpBinding vs. WSHttpBinding<p> </p> <p>BasicHttpBinding is a WS-I Basic Profile [1] binding; it does not implement any advanced WS-* specs and sticks with SOAP over HTTP(S).  Due to the binding's simplicity it enables a higher level of interoperability with existing web service client and services.</p> <p>The WSHttpBinding implements the advanced WS-* specs  including WS-Addressing and WS-Security enabling for more advanced messaging scenarios but also reduces the reach of your services and clients.</p> <p>The reason you are probably seeing the perf gain with the BasicHttpBinding is because it is disables security by default while the WSHttpBinding has security enabled by default. </p> <p>BasicHttpBinding only supports confidentiality through SSL at the transport level. </p> <p>WSHttpBinding supports it both at the transport level (SSL) and at the message level (WS-Security).</p> <p>HTH,</p> <p>Dave</p> <p>[1] - <a title="http://www.ws-i.org/" href="http://www.ws-i.org/">http://www.ws-i.org/</a></p>Fri, 27 Oct 2006 22:06:25 Z2006-10-28T01:41:56Z