I'm writing an application that needs to connect to a web service. Under certain circumstances, I need to toggle the endpoint address.
I assume this is as simple as changing the System.ServiceModel.Description.ServiceEndpoint
, when the address needs to change. However, I'm getting an exception when I do this because one addresses requires SSL, and the other address doesn't.
How can I correctly update web services endpoint address?
Note: This is a C#, .Net 3.5 project.