如何调用RESTful API [英] how to call RESTful api

查看:171
本文介绍了如何调用RESTful API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要调用REST api并在Windows Phone 7.1中显示数据. API需要三个参数,并以.xml格式输出.

I need to call REST api and display data in windows phone 7.1. API need three parameters and give output in .xml.

请指导如何在Windows Phone中使用参数调用api并显示数据.

Please guide how to call api in windows phone with parameter and display data.

谢谢

推荐答案

使用WebClient或HttpWebRequest发送请求.  使用XmlDocument和Linq处理响应.  使用显示输出所需的任何UI控件.

Use WebClient or HttpWebRequest to send the request.  Use XmlDocument and Linq to process the response.  Use whatever UI controls you need to display the output.

使用您喜欢的搜索引擎在Windows Phone 7中查找有关使用上述功能的教程. 在网络上可以找到的可用功能太多,无法在此处列出.

Use your favourite search engine to look for the tutorials on using the above features in Windows Phone 7.  There are far too many available that are easily found on the web to list here.


这篇关于如何调用RESTful API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆