title: WCF service under https environment
body: <p>I've created and tested WCF service, everything works fine.</p>
  
  <p>When I deployed to TEST environment and tried to open <a href="https://my.site/myapp/EnrollmentService.svc" rel="noreferrer">https://my.site/myapp/EnrollmentService.svc</a> I've got the error message:</p>
  
  <blockquote>
    <p>Could not find a base address that
    matches scheme http for the endpoint
    with binding
    MetadataExchangeHttpBinding.
    Registered base address schemes are
    [https].</p>
  </blockquote>
  
  <p>Internet showed me that I need to add some more configuration options:</p>
  
  <p><a href="http://www.codeproject.com/KB/WCF/7stepsWCF.aspx" rel="noreferrer">http://www.codeproject.com/KB/WCF/7stepsWCF.aspx</a></p>
  
  <p>I've added some settings to service web.config file. Now it looks like in the following way:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;services&gt;
    &lt;service name="McActivationApp.EnrollmentService" behaviorConfiguration="McActivationApp.EnrollmentServicBehavior"&gt;
      &lt;endpoint 
        address="https://my.site/myapp/EnrollmentService.svc"
        binding="basicHttpBinding"
        bindingConfiguration="TransportSecurity"
        contract="McActivationApp.IEnrollmentService"/&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="McActivationApp.IEnrollmentService" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="McActivationApp.EnrollmentServicBehavior"&gt;
        &lt;serviceMetadata httpGetEnabled="True"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="TransportSecurity"&gt;
        &lt;security mode="Transport"&gt;
          &lt;transport clientCredentialType="None" /&gt;
        &lt;/security&gt;
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" /&gt;
  &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Actually, I've added "bindings" section and specified it for my endpoint.</p>
  
  <p>But this changed nothing...</p>
  
  <p>Please advise, what I need to do. Thanks a lot!</p>
  
  <p>P.S. Are there any differences in WCF service consuming from https and http resources?</p>