将Ms SQL Server数据库发送到Android应用程序 [英] Send Ms SQL Server database to android app

查看:118
本文介绍了将Ms SQL Server数据库发送到Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个asp.net网站,并使用ms sql server 2012数据库,现在我想将该数据发送到Android应用程序。我怎样才能做到这一点。我在Google上搜索过,发现这可以通过使用Web服务来完成,但会混淆哪种类型的Web服务? Json,Rest,WCF或其他任何东西。

I have created a asp.net website and with ms sql server 2012 database and now i want to send that data to android app. How can i do this. i searched on Google and found that this can be done by using web services but confuse in which type of web service? Json,Rest, WCF or anything else.

推荐答案

Web服务可以分为两部分。 大Web服务和RESTful Web服务。您可以在此处了解更多相关信息。

。您可以使用.asmx webservice,WCF或Restful Web服务。 JSON不是Web服务类型。 JavaScript Object Notation的JSON标准,它是用于存储和交换数据的语法。您也可以使用SOAP作为基于XML的协议来访问Web服务。但我建议使用JSON。 阅读JSON和XML之间的一些优缺点

以下是一些关于webservice的教程用android

Step by从Android访问Web服务的步骤方法 [ ^ ]



http://androidexample.com/Dot_Net_Webservice_Call_-_Android_Example/index.php?view=article_discription&aid=100&aaid=122 [< a href =http://androidexample.com/Dot_Net_Webservice_Call_-_Android_Example/index.php?view=article_discription&aid=100&aaid=122target =_ blanktitle =New Window> ^ ]



http://androidexample.com/Restful_Webservice_Call_And_Get_And_Parse_JSON_Data-_Android_Example/index.php?view=article_discription&aid=101&aaid = 123 [ ^ ]



http ://programmerguru.com/android-tutorial/category/web-service/ [ ^ ]
Hi, Web services can be manily devided into two parts. "Big" Web Services and RESTful Web Services. You can read more about them here
.you can use either .asmx webservice, WCF or Restful Web service. And JSON is not a web service type. JSON standards for JavaScript Object Notation and it is a syntax for storing and exchanging data. Also you can use SOAP which is a XML based protocol for accessing web services.But i recommend to use JSON . Read some pros and cons between JSON and XML
Here are some tutorials about webservice with android
Step by Step Method to Access Webservice from Android[^]

http://androidexample.com/Dot_Net_Webservice_Call_-_Android_Example/index.php?view=article_discription&aid=100&aaid=122[^]

http://androidexample.com/Restful_Webservice_Call_And_Get_And_Parse_JSON_Data-_Android_Example/index.php?view=article_discription&aid=101&aaid=123[^]

http://programmerguru.com/android-tutorial/category/web-service/[^]


这篇关于将Ms SQL Server数据库发送到Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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