Using HTTPS with basicHttpBinding in WCF Gateway

WCF can work as gateway and in this case you need to configure the service endpoint and client endpoint.

In some cases your client endpoint is HTTPS  and you are using basicHttpBinding. basicHttpBinding suppose you are not using HTTPS.

You need to define your own binding configuration with security mode set to Transport

0

 <client>
    <endpoint name="clientEndPoint" 
              bindingConfiguration="MyBasicHttpBinding" 
              address="https://**********************.svc" 
              binding="basicHttpBinding" 
              contract="*" />
 </client>

 <bindings>
     <basicHttpBinding>
        <binding name="MyBasicHttpBinding">
           <security mode="Transport">
           </security> 
        </binding>
    </basicHttpBinding>
</bindings>