Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Although I can't find anything <em>specifically</em> on 4.0 vs 4.5, the link you referenced shows a config file first for 3.0 and then one for 4.5.</p> <p>Beginning with 4.0, simplified config files were introduced that had the concepts of default bindings and default endpoints - meaning that you could create an out-of-the-box WCF service application in 4.0 or 4.5 and there would be no binding or endpoint defined - you can verify this by looking at the web.config files for your 4.0 and 4.5 service.</p> <p>When you add a service reference, you most likely used an "http://" URI - by default, "http" maps to <code>basicHttpBinding</code>. So let's look at the snippet you posted in the comments:</p> <pre><code> &lt;endpoint address="localhost:36275/Service1.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1" contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" /&gt; </code></pre> <p>Everything the client needs to communicate with the service is there - the address, the binding to use, the binding configuration to use and the contract.</p> <p>If you look in the client config file, you should see the following as well:</p> <pre><code>&lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="BasicHttpBinding_IService1" /&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; </code></pre> <p>Which corresponds to the binding specified by the endpoint's <code>bindingConfiguration</code> attribute. Since the defaults are being used, the other properties for the binding are not specified.</p> <p>In 3.0 and 3.5, the binding section would have had all the properties of the binding specified with default values - in 4.0 and later it does not.</p> <p>You're not missing anything - other than the documentation being a little misleading in that it implies this is a 4.5 feature, when it reality it's a 4.0 and 4.5 feature.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload