Creating Web Service for Android Application

后端 未结 2 2028
隐瞒了意图╮
隐瞒了意图╮ 2020-12-24 08:55

I\'ve been reading some info about Web Services for Android using SOAP or REST but I\'ve never created a web service so I have many qu

相关标签:
2条回答
  • 2020-12-24 09:22

    Use SQL Server to manage the data on your desktop and create a web-service in .NET on Visual Studio.

    Then connect to the web-service in your application and set/get data from the DB, using web-services. You can use either XML or JSON to transfer your data between the phone and the server.

    There is no need for the use of Java Socket API for this.

    Links which might be useful :

    How to make a web-service in .NET (does not include the implementation in Android) : http://srikanthtechnologies.com/blog/dotnet/wsdaljava.aspx

    How to connect your service with Android :

    http://seesharpgears.blogspot.in/2010/11/basic-ksoap-android-tutorial.html

    http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap

    http://adrianandroid.blogspot.in/2012/05/access-c-net-web-service-in.html

    Note: I have never worked on RESTful services. My work has always been on SOAP and hence it remains my preference.

    0 讨论(0)
  • 2020-12-24 09:37

    Your final choice of how, exactly, to architect your app, is going to be based on all sorts of things that you haven't included in your questions: your experience, the experience of the other developers in the project, so on and so on.

    I will say this, however. REST is deep in the heart of Android. If you decide to go with REST and, possibly, JSON instead of XML (there is, almost certainly, no reason to use byte arrays), you will find that Android's architecture supports you. SOAP and such and you are on your own.

    0 讨论(0)
提交回复
热议问题