Search code examples
wcfhttpswcf-bindingwcf-security

Add Service Reference take a https wsdl and generates a http endnpoint


In VS2008 and 2010, when I add a service reference to a service that indicates https, the endpoint it creates is http. If I try to change the endpoint in the app.config to https, I get:

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


Solution

  • In the binding the security is defined to be <security mode="Transport"> ?

    Transport means SSL, which have to be https://