Create Restful API web service for android app - android

I have created Login page in asp.net with MySQL and that web application published on IIS. I want to access that username and password using Web service in my android app. how to create web service for that and how to access it my app please help me.

WEB Api is a platform to create Restful services which can easily consumed by your android app, web application etc. Refer this link Create Restful services

Related

I want to connect android application with sql server with web service

i want to build an android application and i need to save and retrieve data from sql server database
so i need to do that with web service
i dont have knowledge in web services and how they are done
so can you help me what is the best way to do the web service and connect my android client with sql database
That's a pretty broad question, but here are the basics. A web service is a program or app that runs on a web server, usually exposed to the internet, or within a company's LAN on their intranet. Web Services can be built using ASP.NET or JAVA or PHP. I've used ASP.NET, specifically Web API 2.0, and Entity Framework. Entity Framework makes it very easy to connect your Web Service to your SQL Server database. With Web API and Entity Framework, you can create your web service and connect it to your database with basic Read/Add/Update/Delete capability in 1-2 hours.
Once you write your web service, you need to publish it on a Web Server as a Web App. I typically publish to an IIS Web Server (also Microsoft). For that you need a Website Hosted account with a Microsoft based server. Microsoft can host your Web Service using the Azure Cloud service. You can check out some tutorials for building your Web Service using the technologies mentioned and deploying to the Web using Azure. You can get a free Azure account to start with. Then, if you need to use it for a long time, you might need to pay for hosting fees.
This is probably the easiest and best way for you to get started, particularly if you are new to web services.
Good Luck!
Here is a tutorial using the technologies I've mentioned, except for Azure. But you should be able to find a tutorial for publishing a web service to Azure separately.
https://www.c-sharpcorner.com/article/asp-net-web-api-crud-logics-using-entity-framework-without-writing-single-code/

Communication between a web application and an android application

I have a web application built on java and an android application. Both are deployed on different servers. How can i send request from android application to web application? Also, how can i send corresponding response from the web application to android application?
use REST api's (in JSON format).
This can be done with the help of web API's . You have to create webApi's on your server and, You can use AsyncTask in your android application to communicate with those web Api's.

Accessing Authenticated User Information with Azure Mobile Service .Net backend for Android Client

I am trying to explore Microsoft Azure Mobile services for Android client. I am able to create the mobile service and database on Azure, also able to access the same from my Android client using these tutorials. Currently I am struggling with Authenticating user from the social site likes Google/Facebook/Twitter/Microsoft and get their personal info with the help of latest updates added to the Azure Mobile Services .NET backend given here.
My question is how to access these updates in Android client. Or any other way by which I can able to access all the persoal information related to an authenticated user using .net backend for Android client. Please help me here...

Android application connecting to a public server database

I'm creating an application in Android, and I also have a virtual server in Amazon Web Services, because I'm trying to connect to a database hosted in there from my Android application; I'd like to know how could I connect to the AWS database (Microsoft SQL Server), I understand that the servers in AWS are visible publicly, but I'm lost here, Could you provide me some guidance on this? thanks!
Your best bet is to create a web service layer between your Android app and your back-end database. That way, your Android app talks to the web service via the HTTP protocol, and the web service (running on a web server with access to your SQL Server) talks to the database. This is the most common method for achieving the database connectivity you need.
You create your web services using whichever web technology you are most comfortable with; .NET, PHP, ColdFusion, or whatever. So-called RESTful web services are a nice way to do this. You can read about building RESTful web services with .NET here. Hope it helps. Good luck with your app.

Call a method from web app to android app

Is it possible to call a method / API / web service from a web application to an android application, something like android app become web service provider and the web app become web service client,
I would like to refresh data on an android app by clicking on a button on a web application,
Something like Google Cloud Messaging - http://developer.android.com/google/gcm/index.html
would probably be your best choice.
You can use I-Jetty in your app and make your app as the web server.. use the source code and run the server from a android service. More detail can be found at following link:
https://code.google.com/p/i-jetty/

Categories

Resources