2012-12-14 123 views
0

我使用this code for Windows phone and server communication using WCF從手機發送我的數據到服務器並獲得響應。但我收到錯誤「遠程服務器返回錯誤:NotFound。」使用WCF服務進行Windows移動和服務器通信?

這怎麼URI創建:

string ServiceUri = "http://localhost:30576/Service1.svc/Rest/add/" 
        + Number1 + "/" + Number2; 

我不明白從那裏/Rest/add/是從哪裏來的。由於這個,我可能會遇到錯誤。

+0

你嘗試沒有「休息」?沒有「休息」意味着什麼? – Nirmal

+0

? – user1881251

回答

0

查看「RESTEndPoint」部分中的web.config。他的端點基地址是「休息」。所以你必須使用你的web.config端點地址。