will be helpful for those in need See [this post]. When you create the WebHttpBinding set its Security property to transport.
System.ServiceModel.WebHttpBinding w = new System.ServiceModel.WebHttpBinding();
w.Security = new System.ServiceModel.WebHttpSecurity();
w.Security.Mode = System.ServiceModel.WebHttpSecurityMode.Transport;
The provided URI scheme 'http' is invalid; expected 'https'. Parameter name: via
like below fixes the issue I thought Id create a new question as my earlier question was full of noise. Anyways I worked my way through the suggestions there and now I'm getting the following error when I try to access the client. , In your web.config, change the endpoint URL to https://...
The provided URI scheme 'https' is invalid; expected 'http'. Parameter get Via-API