HttpClient with BaseAddress

In the BaseAddress, just include the final slash: https://localhost:44302/AndonService.svc/. If you don’t, the final part of the path is discarded, because it’s not considered to be a “directory”. This sample code illustrates the difference: // No final slash var baseUri = new Uri(“https://localhost:44302/AndonService.svc”); var uri = new Uri(baseUri, “Layouts/1100-00277”); Console.WriteLine(uri); // Prints “https://localhost:44302/Layouts/1100-00277” // With … Read more

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

You’re comparing apples to oranges here: webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is quite different from REST. SOAP has the advantage of having WSDL and XSD to describe … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)