【发布时间】:2011-02-12 13:45:28
【问题描述】:
我在生产环境中部署了一个 .net 解决方案,该解决方案使用在 Visual Studio 中添加为“服务参考”的 Web 服务。
今天端点 URL 已更改,我在 web.config 中修改了该 URL。但是当我运行解决方案时,我得到了错误:
System.ServiceModel.FaultException: Server did not recognize the value of HTTP Header SOAPAction: http://93.62.150.200/LogEvent.
现在这对我来说听起来很奇怪。可以看到,IP是93.62....但是新的值不一样了。
web.config 条目(带有新值或 URL)是:
<client>
<endpoint address="http://213.92.50.215/sawfc/WS_SAWFC_Int.asmx"
binding="basicHttpBinding" bindingConfiguration="wsSAWFCInterfaceSoap"
contract="it.datasphere.ws.wsSAWFCInterfaceSoap" name="wsSAWFCInterfaceSoap" />
</client>
我无法从开发环境访问新的 Web 服务,因此我无法在那里修改服务引用。
有什么想法吗?非常感谢!
【问题讨论】:
标签: web-services configuration web-config