小编Muh*_*qar的帖子

提供的 URI 方案“https”无效;预期'http'。参数名称:通过用于HTTPS

以下是场景。

我们有 F5 负载均衡器,传入的请求作为 HTTP 进入 F5 负载均衡器,然后它们被重定向到 WCF 服务服务器作为 HTTP。

我已经尝试了几乎所有可能的配置组合,但它不断给出两个不同的错误。例如,根据一些建议,我尝试将安全模式更改为“传输”,然后错误更改为:“无法为具有权限 'xxx.xxx.xxx.xxx:XXXX' 的 SSL/TLS 建立安全通道.”

服务器配置:

<system.serviceModel>
    <services>
      <service behaviorConfiguration="NameofServiceBehaviour" name="NameOfServices">
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpEndPointBinding" name="wsHttpEndPoint" contract="Name.IContractName" />
      </service>
    </services>
    <bindings>
      <wsHttpBinding>
        <binding name="wsHttpEndPointBinding">
          <security mode="None"> 
        <!-- <transport clientCredentialType="Certificate" /> -->
      </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceBehaviourName">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
          <!-- <serviceCredentials>
            <serviceCertificate findValue="CN=CertificateName" storeLocation="LocalMachine" />
          </serviceCredentials> -->
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
  </system.serviceModel>
Run Code Online (Sandbox Code Playgroud)

客户端配置:

<system.serviceModel>
        <bindings>
            <wsHttpBinding>
                <binding name="wsHttpEndPoint">
                    <security mode="None" /> …
Run Code Online (Sandbox Code Playgroud)

https wcf wcf-hosting

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

https ×1

wcf ×1

wcf-hosting ×1