2013-05-18 46 views
0

我已經推出了ASP。綁定WCF服務

<system.serviceModel> 
<client> 
    <endpoint address="http://somehost.com/GiService.svc" binding="basicHttpBinding" 
    contract="RespService.IProcess"/> 
</client> 
</system.serviceModel> 

問題,該服務綁定到絕對URI,但如果相對設置,我有錯誤:此URI應該是絕對的

回答

0

嘗試使用WCF服務的web.config這裏的一些代碼淨aplication以下:

<system.serviceModel> 
<client> 
    <endpoint address="/GiService.svc" binding="basicHttpBinding" 
    contract="RespService.IProcess"/> 
</client> 
</system.serviceModel> 
+0

這沒有奏效,我怎麼說我有迴應:這個URI應該是絕對的 – BOBUK