title: C# The provided URI scheme 'http' is invalid; expected 'https'
body: <p>I am getting this error while invoking a method of my web service, I dont know what to do anymore :s</p>
  
  <p>Here is the exception details:</p>
  
  <blockquote>
    <p>{"The provided URI scheme 'http' is invalid; expected
    'https'.\r\nParameter name: via"}</p>
  </blockquote>
  
  <p>Here is my App.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
  
      &lt;connectionStrings&gt;
        &lt;add name="PowerWeb" connectionString="Data Source=MYSERVER;Initial Catalog=MYTABLE;User ID=MYUSER;Password=MYPW" providerName="System.Data.SqlClient" /&gt;
      &lt;/connectionStrings&gt;
      &lt;startup&gt; 
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
      &lt;/startup&gt;
      &lt;system.serviceModel&gt;
  
  
  
        &lt;bindings&gt;
          &lt;customBinding&gt;
            &lt;binding name="ZWS_HARMONIZACAO"&gt;
              &lt;!--    WsdlImporter encountered unrecognized policy assertions in ServiceDescription 'urn:sap-com:document:sap:rfc:functions':    --&gt;
              &lt;!--    &lt;wsdl:binding name='ZWS_HARMONIZACAO'&gt;    --&gt;
              &lt;!--        &lt;saptrnbnd:OptimizedXMLTransfer xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/"&gt;..&lt;/saptrnbnd:OptimizedXMLTransfer&gt;    --&gt;
              &lt;!--        &lt;saptrnbnd:OptimizedXMLTransfer xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/"&gt;..&lt;/saptrnbnd:OptimizedXMLTransfer&gt;    --&gt;
              &lt;!--        &lt;sapattahnd:Enabled xmlns:sapattahnd="http://www.sap.com/710/features/attachment/"&gt;..&lt;/sapattahnd:Enabled&gt;    --&gt;
              &lt;textMessageEncoding messageVersion="Soap11" /&gt;
  
              &lt;httpsTransport authenticationScheme="Basic"  /&gt;
  
  
            &lt;/binding&gt;
          &lt;/customBinding&gt;
        &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://mydomain:8080/sap/bc/srt/rfc/sap/zws_harmonizacao/010/zws_harmonizacao/zws_harmonizacao"
                  binding="customBinding" bindingConfiguration="ZWS_HARMONIZACAO"
                  contract="ServiceReference1.ZWS_HARMONIZACAO" name="ZWS_HARMONIZACAO" /&gt;
          &lt;/client&gt;
  
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Can anyone help me?
  Thanks a lot in advance </p>