我正在嘗試使用Bing Maps Web服務的小應用程序。當我嘗試連接服務器以獲取信息,我得到的錯誤:Bing Maps Web服務沒有端點監聽
There was no endpoint listening at http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc that could accept the message. This is often caused by an incorrect address or SOAP action."
問題是什麼?我的網絡代理可以是原因嗎?
SearchResponse searchResponse = searchResponse = searchService.Search(searchRequest);
的config文件在<cliente>
代碼:
<endpoint address="http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISearchService"
contract="SearchService.ISearchService" name="BasicHttpBinding_ISearchService" />
因爲你是一個代理在網絡上,你將需要添加在您這裏指定的指定代理地址defaultProxy元素:http://msdn.microsoft.com/en-us/library/kd3cf2ex。 ASPX – Rajesh