【发布时间】:2014-05-12 23:57:28
【问题描述】:
我可以毫无问题地从 Windows 应用程序访问我的 Web API 服务器。不过,来自 Android 的是 a different story
为什么会这样?
“localhost”是不是用错了(在 URL 中)?我应该改用计算机的名称吗?
字符串(按字面意思传递为“http://localhost:28642/api/Departments/GetCount?serialNum=4242”)是否需要逐字逐句?
调用 REST 方法的 Windows 应用和调用相同 REST 方法的 Android 应用之间有什么区别,会导致后者失败(连接被拒绝)?
【问题讨论】:
标签: android asp.net-web-api asp.net-mvc-routing url-routing econnrefused