我可以从 Windows Mobile 应用程序调用 REST Web 服务吗

问题描述:

我想构建一个简单的 REST Web 服务(使用 Ruby on Rails).但是,我希望能够从 Windows 移动应用程序调用此服务.那可能吗?还是我必须使用 SOAP?

I would like to build a simple REST web service (using Ruby on Rails). However, I would like to be able to call this service from a Windows mobile app. Is that possible? or do I have to use SOAP?

我对 Windows Mobile 应用程序没有太多经验,因此如果您能提供可能案例的伪代码或教程链接,那就太好了.

I don't have much experience with Windows Mobile apps so it would be nice if you can provide pseudo code or link to tutorial for the possible case.

谢谢,

是的,你可以.我已经使用 Win32 wininet API 完成了很多工作.

Yes you can. I've done it lots using the Win32 wininet API.

您也可以在 C# 中使用 System.Net HttpWebRequest API.

You can also do it in C# using the System.Net HttpWebRequest API.