title: Forcing WCF to use HTTPS
body: <p>How do I ensure my WCF service is over HTTPS and all communication is over HTTPS?</p>
  
  <p>Theres nothing in my web.config file of the service that says http://... or https://....</p>
  
  <p>HTTPS is set up in IIS and I can access the web service via http and https.</p>
  
  <p>Or is this not required if it's encrypted anyway with message level security?</p>
  
  <pre><code>&lt;bindings&gt;
    &lt;wsHttpBinding&gt;
      &lt;binding name="Binding1" maxReceivedMessageSize="20000000"&gt;
        &lt;security mode="Message"&gt;
          &lt;message clientCredentialType="UserName"/&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/wsHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>