我已经推出了ASP。使用WCF服务的net aplication,这里有一些WEB.config代码:
<system.serviceModel>
<client>
<endpoint address="http://somehost.com/GiService.svc" binding="basicHttpBinding"
contract="RespService.IProcess"/>
</client>
</system.serviceModel>
此服务绑定到绝对URI的问题,但如果设置为relative我有错误:此URI应为绝对
答案 0 :(得分:0)
尝试以下方法:
<system.serviceModel>
<client>
<endpoint address="/GiService.svc" binding="basicHttpBinding"
contract="RespService.IProcess"/>
</client>
</system.serviceModel>