asp.net - Http and Https request to WCF service -



asp.net - Http and Https request to WCF service -

in system.service / behaviours / servicebehaviours

i have next behaviour:

<behavior name="pubajaxaspnetajaxbehavior"> <servicemetadata httpgetenabled="true" httpsgetenabled="true" /> <servicedebug includeexceptiondetailinfaults="true" /> </behavior>

with both these properties httpgetenabled="true" , httpsgetenabled="true" in place means requests webservice on http throw error:

could not find base of operations address matches scheme https endpoint binding webhttpbinding. registered base of operations address schemes [http].

is possible have wcf service accepts http , https requests?

i don't think can have them both true on same endpoint, can utilize different bindings different endpoints.

you can utilize bindings that

<bindings> <basichttpbinding> <binding name="httpbinding"> <security mode="none"> <transport clientcredentialtype="none"></transport> </security> </binding> <binding name="httpsbinding"> <security mode="transport"> <transport clientcredentialtype="windows" /> </security> </binding> </basichttpbinding> </bindings>

please @ post

stackoverflow post

asp.net wcf

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -