C#Rest web服务和Android客户端
嘿,我想用C#和android上的客户端制作一个简单的Rest web服务。 我在这个链接上找到了一个简单的C#web服务,它增加了两个数字: 有人能帮我为这个web服务制作Android客户端吗 谢谢请看我的问题: 调用rest服务只需创建HttpResponse并处理返回的xml/json/value。请参见我的问题:C#Rest web服务和Android客户端,android,web-services,rest,Android,Web Services,Rest,嘿,我想用C#和android上的客户端制作一个简单的Rest web服务。 我在这个链接上找到了一个简单的C#web服务,它增加了两个数字: 有人能帮我为这个web服务制作Android客户端吗 谢谢请看我的问题: 调用rest服务只需创建HttpResponse并处理返回的xml/json/value。请参见我的问题: 调用rest服务只是创建HttpResponse和处理返回的xml/json/值的问题。您可能找到了一些有效的方法,但我无意中发现了这个线程,对于其他人来说,下面的内容可能
调用rest服务只是创建HttpResponse和处理返回的xml/json/值的问题。您可能找到了一些有效的方法,但我无意中发现了这个线程,对于其他人来说,下面的内容可能会很有用 我更喜欢使用MVC和Android的REST应用程序。 -www.asp.net/mvc(优秀视频教程) 创建服务器: h t p:// omaralzabir.com/create_rest_api_使用_asp_net_mvc_说_json_和_plain_xml/
public class TestingController : Controller {
/// <summary>
/// Test
/// </summary>
/// <returns></returns>
public ActionResult GetString() {
return Content("A Result <orasxml id='testid'/>");
}
}
}
关于为Android设计REST的提示:
http://www.youtube.com/watch?v=xHXn3Kg2IQE
http://www.infoq.com/articles/rest-introduction
一般Android帮助:
h t p://mobile.tutsplus.com/tutorials/android/introduction-to-android-development/
h t t p://www.youtube.com/watch?v=lqopIf-bA54&feature=related您可能找到了一些有效的方法,但我无意中发现了这条线索,对于其他人来说,以下内容可能很有用 我更喜欢使用MVC和Android的REST应用程序。 -www.asp.net/mvc(优秀视频教程) 创建服务器: h t p:// omaralzabir.com/create_rest_api_使用_asp_net_mvc_说_json_和_plain_xml/
public class TestingController : Controller {
/// <summary>
/// Test
/// </summary>
/// <returns></returns>
public ActionResult GetString() {
return Content("A Result <orasxml id='testid'/>");
}
}
}
关于为Android设计REST的提示:
http://www.youtube.com/watch?v=xHXn3Kg2IQE
http://www.infoq.com/articles/rest-introduction
一般Android帮助:
h t p://mobile.tutsplus.com/tutorials/android/introduction-to-android-development/
http://www.youtube.com/watch?v=lqopIf-bA54&feature=related
//Display on buttontext, must create buttoon with ButtonReload as id...
final Button btn = (Button) findViewById(R.id.ButtonReload);
btn.setText(testString);