【发布时间】:2011-04-07 22:08:10
【问题描述】:
我有一个 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
任何获取请求也会失败 前任: http://mysite/Service/Analytics.svc/MyURITemplate/Id/1
谢谢。
【问题讨论】: