Trying to connect to a WCF-service but get some error messages:
The HTTP request is unauthorized with client authentication scheme Anonymous The authentication header received from the server was Basic
The provided URI scheme https is invalid expected http
The solution was to adjust web.config > system.serviceModel section. Add “Transport” to security mode. and clientCredentialType should be “Basic” if the server expects Basic Realm.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="Document_Binding" closeTimeout="01:00:00" openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00:00" maxReceivedMessageSize="2147483647">
<security mode="Transport">
<transport clientCredentialType="Basic" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint ....../>
</client>
</system.serviceModel>
Good luck with your connections =)