none
Service call error: The provided URI scheme 'https' is invalid; expected 'http'. RRS feed

  • Question

  • I am making a service to service call on Server 2012R2 via https and I receive the error above.  Works fine via http: . Both services are hosted in the .Net v2.0 app pool on the same VM.

    Below are the bindings from the web.config files for both client and provider.

    Client:

      <bindings>
        <wsDualHttpBinding>
          <binding name="wsDualHttp" receiveTimeout="02:00:00" maxReceivedMessageSize="8388608">
            <readerQuotas maxStringContentLength="8388608" maxNameTableCharCount="32768" />
            <security mode="None" />
          </binding>
        </wsDualHttpBinding>
        <wsHttpBinding>
          <binding name="wsHttp" maxReceivedMessageSize="8388608">
            <readerQuotas maxStringContentLength="8388608" maxNameTableCharCount="32768" />
            <security mode="None"/>
          </binding>
          <binding name="wsHttpMessageEncryption" maxReceivedMessageSize="8388608">
            <readerQuotas maxStringContentLength="8388608" maxNameTableCharCount="32768" />
            <security mode="Message">
              <message clientCredentialType="None" negotiateServiceCredential="true" />
            </security>
          </binding>
          <binding name="wsHttps" maxReceivedMessageSize="8388608">
            <readerQuotas maxStringContentLength="8388608" maxNameTableCharCount="32768" />
            <security mode="Transport">
              <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
              <message clientCredentialType="Certificate" algorithmSuite="Default" />
            </security>
          </binding>
        </wsHttpBinding>
      </bindings>

    Provider:

    <bindings>
          <basicHttpBinding>
             <binding name="basicHttpBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="4194304" maxBufferPoolSize="524288" maxReceivedMessageSize="4194304" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
               <readerQuotas maxDepth="32" maxStringContentLength="4194304" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
    < security mode="Transport" />
            </binding>
          </basicHttpBinding>
    < /bindings> 

    Wednesday, April 29, 2015 2:38 PM

Answers