我有一个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>
Run Code Online (Sandbox Code Playgroud)
我需要更改什么才能使我的服务启用SSL?
我使用https://mysite/Service/Analytics.svc访问输入页面, 但该消息提供了svcutil.exe http:// machinename /Service/Analytics.svc?wsdl
什么时候应该是http:// mysite /Service/Analytics.svc?wsdl
此外,任何Get Requests都会失败,例如: http://mysite/Service/Analytics.svc/MyURITemplate/Id/1
谢谢.
| 归档时间: |
|
| 查看次数: |
3878 次 |
| 最近记录: |