Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application that is currently consuming a web services over HTTP. It is coded without using an app.config. All the binding code is in the C# code using a BasicHttpBinding object. I now have a need to change this application to consume the same web service over HTTPS. Is there a corresponding HTTPS binding object that I am not finding? I really want to set this up without an app.config it possible. Any help would be greatly appreciated.
Posted

1 solution

UPDATE - I figured out how to make this work. Instead of using the BasicHttpBinding, I am now using an HttpsTransportBindingElment to see the properties I want and then adding that to a CustomBinding object that I now use in place of the BasicHttpBinding object. This seems to do the trick...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900