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>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s