我有一个 silverlight 客户端,它当前与 WCF 服务进行不安全的通信。
1>我想让 WCF 服务安全。(启用 https) 2>我想在 silverlight 客户端中引用安全 wcf 服务。
任何人都可以帮助配置服务吗?
网络配置:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"></serviceHostingEnvironment>
<bindings>
<basicHttpBinding>
<binding name="MyBasicHttpBinding" >
<security mode="Transport" >
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="DataService.Service1Behavior"
name="DataService.Service1">
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="MyBasicHttpBinding"
contract="DataService.IService1">
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DataService.Service1Behavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" httpHelpPageEnabled="true" httpsHelpPageEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
我收到以下错误消息:
找不到与绑定 BasicHttpBinding 的终结点的方案 https 匹配的基地址。注册的基地址方案是 [http]。