代码改变世界

WebService地址变成计算机名的解决办法

2013-11-21 10:43  quanhb  阅读(308)  评论(0编辑  收藏  举报

WCF 4.0 has solved this issue in some instances with a new config option that use Request Headers:

<behaviors>

<serviceBehaviors>

<behaviorname="XXXXXXX">

<useRequestHeadersForMetadataAddress/>

</serviceBehaviors>

</behaviors>