Getting error "the provided uri scheme 'https' is invalid expected 'http" from service

377 Views Asked by At

I'm getting this error. Do you have any idea?

My code is below;

<system.serviceModel>
    <bindings>
        <basicHttpBinding>
            <binding name="Integration" />
        </basicHttpBinding>
    </bindings>
    <client>
        <endpoint address="https://test/WcfService/Integration.svc"
        binding="basicHttpBinding" bindingConfiguration="Integration"
        contract="IntegrationService.Integration" name="Integration" />
    </client>
</system.serviceModel>
1

There are 1 best solutions below

0
Jiayao On

You may modify your app.config as shown in the following example:

<bindings> 
<basicHttpBinding> 
<binding name="Integration"> 
  <security mode="Transport"> 
    <transport clientCredentialType="None" proxyCredentialType="None" realm=""/> 
    <message clientCredentialType="Certificate" algorithmSuite="Default" />
  </security> 
</binding> 
</basicHttpBinding> 
</bindings>