Add Web Reference with certificates on https
Today I was adding a webservice via "Add Web Reference" to my project. The webservice was only accessible on https with a client certificate. When I did "Add Web Reference" I got a "The underlying connection was closed: Could not establish secure channel for SSL/TLS", but in IE it's works perfect. After some research I found an other way to add the webservice via "Add Web Reference". You can do it like this:
- Save the WSDL to a location on your machine.
- Copy the path.
- Go to the Add Web Reference in your project.
- Paste the path you copied into the URL.
- Click on Go.
- Click on Add Reference
Don't forget to change the webservice url in your Web.config or App.config.