积极答复者
windows phone怎么调用azure mobile services中的controller方法?

问题
-
在mobile services 中添加了一个类。
public class TestController : ApiController { public ApiServices Services { get; set; } // GET api/Test public string Get() { Services.Log.Info("Hello from custom controller!"); return "Hello"; } public string test(string s) { return "ok"; } }
然后我用windows phone手机调用这里的test方法 然后获得返回的 "ok"
应该怎么做。 只要具体的windows phone 代码就行。 orz..
答案
-
Hi,
据我所知,如果要调用web api的话,我们可以同过js或者是http请求的方式,具体操作方法请阅读: http://www.cnblogs.com/lori/p/4045633.html, Azure官网提供了一篇关于使用windows phone调用自定义API的文章,希望能满足你的需求,请阅读: http://www.windowsazure.cn/zh-cn/documentation/articles/mobile-services-dotnet-backend-windows-phone-call-custom-api
Best Regards,
Jambor
如果您想进一步了解Windows Azure, Windows Azure 官网欢迎您的访问
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 loki0214 2015年3月14日 6:20
全部回复
-
Hi,
据我所知,如果要调用web api的话,我们可以同过js或者是http请求的方式,具体操作方法请阅读: http://www.cnblogs.com/lori/p/4045633.html, Azure官网提供了一篇关于使用windows phone调用自定义API的文章,希望能满足你的需求,请阅读: http://www.windowsazure.cn/zh-cn/documentation/articles/mobile-services-dotnet-backend-windows-phone-call-custom-api
Best Regards,
Jambor
如果您想进一步了解Windows Azure, Windows Azure 官网欢迎您的访问
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 loki0214 2015年3月14日 6:20