title: Consuming a HTTPS Web Service in .Net 3.5 Web Project
body: <p>I'm trying to consume a webservice that ONLY runs on HTTPS but using the "add service" method in VS or using the WSDL to generate a code file leaves me with a web service that states its http...</p>
  
  <pre><code>  &lt;wsdl:service name="OGServ"&gt; 
      &lt;wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&gt;XML Web Services element of OGServ Gateway&lt;/wsdl:documentation&gt; 
      &lt;wsdl:port name="OGServSoap" binding="tns:OGServSoap"&gt; 
        &lt;soap:address location="http://ogserv.domain.co.uk/ogwsrv/og.asmx" /&gt; 
      &lt;/wsdl:port&gt; 
      &lt;wsdl:port name="OGServSoap12" binding="tns:OGServSoap12"&gt; 
        &lt;soap12:address location="http://ogserv.domain.co.uk/ogwsrv/og.asmx" /&gt; 
      &lt;/wsdl:port&gt; 
    &lt;/wsdl:service&gt; 
  </code></pre>
  
  <p>Would this be the reason that even when I change the app.config (generated by the add-service) endpoint address to https it says it was expecting HTTP?</p>
  
  <p>The error:</p>
  
  <pre><code>EC.Tests.OGGatewayLayerTest (TestFixtureSetUp):
  System.ArgumentException : The provided URI scheme 'https' is invalid; expected 'http'.
  Parameter name: via
  </code></pre>