0
在system.service/behaviours/servicebehaviours
HTTP和HTTPS请求,以WCF服务
我有以下行为:
<behavior name="pubajaxAspNetAjaxBehavior">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
有了这两个属性httpGetEnabled = “true” 和httpsGetEnabled = “真” 的地方就意味着任何请求通过HTTP我的web服务现在抛出错误:
Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http].
是否有可能有一个WCF服务接受http和https请求?