title: WCF consume Https service
body: <p>Currently I consume third party Web Services in my application, the Web Services is 1 way SSL but after I consume the Services in my Visual Studio. At the Web.Config files binding services become no SSL it should download the Https but now is Http. Below are my Web Service. Anyone here. Please help. Thanks</p>
  
  <pre><code>http://ws2.oriongateway.com:22836/willani2/services/ogltngws (No way SSL)
  https://ws2.oriongateway.com:22837/willani2/services/ogltngws (1 way SSL)
  </code></pre>
  
  <p>My app.Config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;system.diagnostics&gt;
          &lt;sources&gt;
              &lt;!-- This section defines the logging configuration for My.Application.Log --&gt;
              &lt;source name="DefaultSource" switchName="DefaultSwitch"&gt;
                  &lt;listeners&gt;
                      &lt;add name="FileLog"/&gt;
                      &lt;!-- Uncomment the below section to write to the Application Event Log --&gt;
                      &lt;!--&lt;add name="EventLog"/&gt;--&gt;
                  &lt;/listeners&gt;
              &lt;/source&gt;
          &lt;/sources&gt;
          &lt;switches&gt;
              &lt;add name="DefaultSwitch" value="Information" /&gt;
          &lt;/switches&gt;
          &lt;sharedListeners&gt;
              &lt;add name="FileLog"
                   type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
                   initializeData="FileLogWriter"/&gt;
              &lt;!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log --&gt;
              &lt;!--&lt;add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/&gt; --&gt;
          &lt;/sharedListeners&gt;
      &lt;/system.diagnostics&gt;
      &lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="OglTngWsSoap11Binding1" /&gt;
              &lt;/basicHttpBinding&gt;
              &lt;customBinding&gt;
                  &lt;binding name="OglTngWsSoap12Binding1"&gt;
                      &lt;textMessageEncoding messageVersion="Soap12" /&gt;
                      &lt;httpTransport /&gt;
                  &lt;/binding&gt;
              &lt;/customBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://ws2.oriongateway.com:22836/willani2/services/ogltngws.OglTngWsHttpSoap12Endpoint/"
                  binding="customBinding" bindingConfiguration="OglTngWsSoap12Binding1"
                  contract="aService.OglTngWsPortType" name="OglTngWsHttpSoap12Endpoint1" /&gt;
              &lt;endpoint address="http://ws2.oriongateway.com:22836/willani2/services/ogltngws.OglTngWsHttpSoap11Endpoint/"
                  binding="basicHttpBinding" bindingConfiguration="OglTngWsSoap11Binding1"
                  contract="aService.OglTngWsPortType" name="OglTngWsHttpSoap11Endpoint1" /&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>