我有一個WCF服務器返回JSON工作正常。 直到我通過SSL訪問該頁面(安裝證書) 我有以下的配置WCF JSON SSL配置
<system.serviceModel>
<services>
<service name="Analytics">
<endpoint name="jsonEP"
address=""
binding="webHttpBinding"
behaviorConfiguration="json"
contract="IAnalytics"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="json">
<webHttp faultExceptionEnabled="true" helpEnabled="true" />
</behavior>
</endpointBehaviors>
</behaviors>
什麼我需要改變,以使我的服務中啓用SSL?
我訪問入口頁面與https://mysite/Service/Analytics.svc 但該消息給 svcutil.exe的HTTP:// 機器名 /Service/Analytics.svc?wsdl
當它應該是http:// 的mysite /Service/Analytics.svc?wsdl
而且任何GET請求失敗 例如: http://mysite/Service/Analytics.svc/MyURITemplate/Id/1
謝謝。
據接近錯誤的URL。但這是什麼工作http://stackoverflow.com/questions/5192132/wcf-service-with-jsonp-over-ssl – Brian 2011-04-08 15:15:32