如果要在SSL上使用webhttpbinding,则必须将绑定配置为使用传输安全性,如:
<security mode="Transport">
这个
link
提供有关示例配置的一些详细信息,以处理以下错误:
找不到与方案http匹配的基地址
具有绑定webhttpbinding的终结点。注册基址计划
是[ http]
日志中的配置示例:
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="TestServiceAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<services>
<service name="TestService">
<endpoint address="" behaviorConfiguration="TestServiceAspNetAjaxBehavior"
binding="webHttpBinding" bindingConfiguration="webBinding" contract="TestService" />
</service>
</services>
<bindings>
<webHttpBinding>
<binding name="webBinding">
<security mode="Transport">
</security>
</binding>
</webHttpBinding>
</bindings>
</system.serviceModel>