【发布时间】:2015-08-04 14:43:17
【问题描述】:
我们在一台 IIS 7.5 服务器上有两个站点。站点 B 需要通过 SOAP 服务与站点 A 通信(站点 B 曾经是外部的,因此使用 SOAP,但现在它们在同一台服务器上)。
如何在站点 B 的网络配置中引用站点 A 而无需通过绝对路径 http://www.example.com/webservice/endpoint.asmx 进行往返?
基本上我想要
<endpoint address="foolocalhost/webservice/endpoint.asmx"
binding="basicHttpBinding" bindingConfiguration="WebServiceSoap"
contract="Reference.WebServiceSoap" name="WebServiceSoap" />
而不是
<endpoint address="http://www.example.com/webservice/endpoint.asmx"
binding="basicHttpBinding" bindingConfiguration="WebServiceSoap"
contract="Reference.WebServiceSoap" name="WebServiceSoap" />
我是否需要更改我的主机文件以将 foolocalhost 设置为绑定?或者有没有更简单的方法,只使用 IIS GUI?
【问题讨论】:
标签: .net web-services iis soap internal