2012-03-29 72 views

回答

1

可以使用<useRequestHeadersForMetadataAddress>服務行爲要做到這一點:

<serviceBehaviors> 
    <behavior name="ServiceBehavior"> 
    <useRequestHeadersForMetadataAddress /> 
    </serviceMetadata httpGetEnabled="false" httpsGetEnabled="true" /> 
    </behavior> 
</serviceBehaviors> 
+0

解析器錯誤消息:配置中的元素無效。擴展名'useRequestHeadersForMetadataAddress'未在system.serviceModel/extensions/behaviorExtensions的集合中註冊。 – 2012-03-30 05:34:42

+0

最終解決方案:** httpsGetUrl =「https://myserver.com/xyz.svc/mex」**完美解決了它 – 2012-03-30 06:15:35

相關問題