【发布时间】:2012-06-12 06:02:37
【问题描述】:
我在 WCF 的 web.config 中有以下配置。
<serviceMetadata httpGetEnabled="true" />
所以一旦我这样做了,我将在 wsdl 中获得架构位置
<xsd:import schemaLocation="http://mysever/Projectname/Services/myService?xsd=xsd0" namespace="MyServiceHost/Service/01/2011"/>
但我想将其更改为 https://mysever/Projectname/Services/myService?xsd=xsd0。
我无法启用 httpsGetEnabled = true,因为我将通过 http 获取 wsdl,但我希望在 https 中有服务请求。
我正在使用负载平衡器,其中负载平衡器到网络服务器的流量通过 http。
有什么建议吗?
【问题讨论】: