El esquema URI proporcionado 'https' no es válido; Se esperaba 'http' al llamar al servicio web

Estoy intentando llamar a un servicio web de SharePoint desde un flujo de trabajo de CRM utilizando un código C # personalizado. Sin embargo, cuando ejecuto mi código, aparece el siguiente error:

The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via

Aquí está el código ofensivo:

#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 EndpointAddress(endpointAddress);
#endregion

#region Create the client and supply appropriate credentials
CopySPContents.CopyService.SharepointFileServiceClient client = new CopySPContents.CopyService.SharepointFileServiceClient(binding, endpoint);              
client.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;              
#endregion

#region Call the web service and trace its response
String response = client.CopyFolderContentsAcrossSites(sourceSiteURL, sourceFolderURL, destinationSiteURL, destinationFolderURL);
#endregion

El error se lanza en la línea.String response = client.CopyFolderContentsAcrossSites(sourceSiteURL, sourceFolderURL, destinationSiteURL, destinationFolderURL); Donde se llama el método del cliente.

Gracias por cualquier ayuda,
Scott

Respuestas a la pregunta(1)

Su respuesta a la pregunta