Please provide information on how to resolve the current problem. Trying to call a WCF service I get the following error: Argument EndpointAddress has unsupported URI scheme: http.
The service is just a simple service that returns a greeting. I am using it to test my connection. This is for a project in Xamarin.Forms.
`GeneralClient client = new GeneralClient(new BasicHttpBinding(), new EndpointAddress(new Uri("http://[service ip address]:8199/General.svc")));
var binding = client.Endpoint.Binding as BasicHttpBinding; #if __IOS__ binding.ProxyAddress = new Uri("https://[proxy ip address]:8080"); binding.UseDefaultWebProxy = false; binding.Security.Mode = BasicHttpSecurityMode.Transport; binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic; // !!! binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.Basic; // !!! if (client.ClientCredentials == null) return; client.ClientCredentials.UserName.UserName = username; client.ClientCredentials.UserName.Password = password; #endif client.HandshakeCompleted += TestResult; client.HandshakeAsync("Aaron");`
As you can see I finally got through my company's proxy with the above code but then when it tries to go to the service it gives the above error.
Has anyone experienced this and if so how did you get it resolved?