简体   繁体   English

是否可以将Android设备连接到WCF或任何其他.NET Web服务?

[英]Is it possible to connect an Android device to a WCF or any other .NET web service?

I want to create an Android app to connect with a server and it's DB. 我想创建一个与服务器及其数据库连接的Android应用。 In order to communicate with the server can I use a .NET web service? 为了与服务器通信,我可以使用.NET Web服务吗? and what sort of a service should I use? 我应该使用哪种服务?

Webservices is the bridge between the server and your android app.For accessing the DB from the server you have to write the webservices that returns the data in json format or other. Webservices是服务器和Android应用之间的桥梁。要从服务器访问数据库,您必须编写以json格式或其他格式返回数据的webservices。

For JSON you have to use JSON Parsing that will parse the data coming from the server and get it on to your app. 对于JSON,您必须使用JSON解析,它将解析来自服务器的数据并将其传输到您的应用程序中。 And for sopa webservices you have to use KSOAP library and parse the data. 对于sopa Web服务,您必须使用KSOAP库并解析数据。

FOr JSON Parsing refer this:- http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ 对于JSON解析是指这样的: - http://www.androidhive.info/2012/01/android-json-parsing-tutorial/

For soap webservices:- http://seesharpgears.blogspot.in/2010/11/basic-ksoap-android-tutorial.html 对于肥皂网络服务 :-http: //seesharpgears.blogspot.in/2010/11/basic-ksoap-android-tutorial.html

Hope it helps you a lot. 希望对您有很大帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM