WP仅支持basicHttpBinding。我的应用程序通过WCF发送敏感数据并将其存储在数据库中。数据以纯文本形式发送,这是不可接受的。我找到了一些解决方案,但它没有用。我已将securityMode设置为Transport,但我有例外。这是我的web.config文件:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="serviceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="baseBinding" >
<security mode="Transport" />
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="serviceBehavior" name="TestWCF.WcfNotificationService.WcfNotificationService">
<endpoint address="base" binding="basicHttpBinding" bindingConfiguration="baseBinding"
contract="TestWCF.WcfNotificationService.IWcfNotificationService" />
<host>
<timeouts openTimeout="00:05:00" />
</host>
</service>
</services>
当我在客户端更新服务引用时,我收到错误:
找不到与绑定BasicHttpBinding绑定端点的方案https匹配的基址。注册的基地址方案是[http]。
你能帮我,我该怎么办? 感谢