Last post Nov 26, 2014 12:55 AM by lextm
Nov 25, 2014 08:48 PM|silly_dude|LINK
We sell instruments that collect patient information and send it to the hospitals. For this purpose, we created an ASP.NET web service to be deployed onto the web servers of the hospitals. Our instrument will then send the data to those web services.
Before the instrument sends the data, we want to find out whether the remote web service is SSL/TLS enabled. If it is not, the instrument must refuse to send the patient information.
How do I tell whether a remote web service is SSL/TLS-enabled?
FYI: inside the instrument, we invoke the web service using a web service reference that inherits from System.Web.Services.Protocols.SoapHttpClientProtocol.
Nov 25, 2014 10:22 PM|lextm|LINK
SoapHttpClientProtocol has a Url property (of string type) that you can analyze to see if HTTPS is enabled,
Nov 25, 2014 10:37 PM|silly_dude|LINK
Thank you very much Lex - could you please tell me how to verify the SSL using the URL?
Nov 26, 2014 12:55 AM|lextm|LINK
Use the string to create a Uri object, and then read its Scheme,