如何使wcf通過https工作。我想通過https使用這個wcf我已經搜索了很多文章,我沒有得到答案,請幫助iam新的wcf概念。我想從AJAX調用它,jQuery的如何在WCF RESTful服務上啓用HTTPS?
<system.serviceModel >
<services>
<service
name="WcfRestfulService.HttpService" behaviorConfiguration="ServiceBehaviour" >
<endpoint address="" binding="webHttpBinding" behaviorConfiguration="web"
contract="WcfRestfulService.IHttpService">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviour">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
你只用希望它'webHttpBinding'或'basichttpbinding'也將達到目的? – 2015-03-25 06:04:35
德里克W公司的答案是完美的,但有一點: 的<綁定>元素不能在裏面<服務> - 之後< /服務>和前<行爲>移動到位。 – Craig 2017-06-13 05:43:10