The provided URI scheme 'https' is invalid; expected 'http' when calling web service
I am trying to call a SharePoint web service from a CRM workflow using custom C# code. However when I run my code, I get the following error: The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via Here is the offending code: #region Set up security binding and service endpoint BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm; binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.Ntlm; EndpointAddress endpoint = new