【发布时间】:2011-07-14 09:24:03
【问题描述】:
在system.service / behaviours / servicebehaviours
我有以下行为:
<behavior name="pubajaxAspNetAjaxBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
有了 httpGetEnabled="true" 和 httpsGetEnabled="true" 这两个属性,这意味着现在通过 http 对我的网络服务的任何请求都会引发错误:
找不到与方案 https 匹配的基地址 具有绑定 WebHttpBinding 的端点。注册的基地址方案 是 [http]。
是否可以有一个接受 http 和 https 请求的 WCF 服务?
【问题讨论】: