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請求?