I would like to have a WCF Service that supports HTTP or HTTPS. Link1 and link2 have been very helpful and I managed to modify web.config to work for both HTTP and HTTPS
<service name="Service">
<endpoint address="" contract="IService" binding="webHttpBinding" bindingConfiguration="wbBind" behaviorConfiguration="web" />
<endpoint address="" contract="IService" binding="webHttpBinding" bindingConfiguration="wbsBind" behaviorConfiguration="web" />
</service>
<binding name="wbBind">
<security mode="None"></security>
</binding>
<binding name="wbsBind">
<security mode="Transport"></security>
</binding>
This works just fine when I have two IIS bindings Site bindings
But if I delete one of the bindings (http for example) Only https binding
then https will also stop working (or the other way around). Can this be fixed?