Android Java Web Service Login

In this post, I am going to discuss about how to authenticate Users in Android application using Java Web service.The application which I am gonna create will have two screens – Login screen and Home screen.

User has to type his/her credentials and click ‘Login’ button. Once ‘Login’ button is clicked, application fires call to Java web service along with Username and Password typed by User. Our Activity waits for response from the web service, once it receives response, it decides whether to take User to next screen(Home) or show ‘Login Failed’ message based on the response.

Here is the graphical representation of whatever we discussed:

Read More

Android JSON Web Service Tutorial

In this post we will be discussing on how to consume JSON response (returned on invoking web service) in Android applications. I took simple example to demonstrate the JSON Web service tutorial. The example which we are gonna create will have two spinner controls (called Dropdownlist in traditional desktop applications), one to display ‘Countries’ list and other to display ‘Cities’ list.

When user selects a country from the ‘Countries’ spinner control, cities belong to the selected country will be populated in the ‘Cities’ spinner control.

Read More

How to call Java web service in android

It was bit difficult to find out a good tutorial on how to call Java web service from inside Android application so I just decided to write one.

In this post, we are going to discuss about calling a web service from inside an Android application that has been developed using JEE technology.

Before we start with developing application, create a simple web service and deploy it in Apache Tomcat or Glass Fish server (server installed in your local machine or hosted server).

Read More

How to call asp.net web service in android

It was bit difficult to find out a good tutorial on how to call ASP .Net web service from inside Android application so I just decided to write one.

In this post, we are going to discuss about calling a web service from inside an Android application that has been developed using ASP .Net technology.

Before we start with developing application, create a simple web service and deploy it in IIS server (server installed in your local machine or hosted server).

Read More

Android Webservice example

In this post, we will be discussing how to invoke web service from Android application. When web methods are invoked from inside Android application, the application gets back the data from the server in the form of XML. The response which has been received can be parsed and rendered in the application as needed.

What is the importance of using Web Service in Android applications?

If you are looking for tutorial on consuming the web service which you created using Java or Dot Net, please follow below links:

How to call Java web service in android

How to call asp.net web service in android

We are gonna use SOAP protocol to send and retrieve information in order to invoke web methods.

What is SOAP?

SOAP is a protocol specification for exchanging structured information in the implementation of Web Services in computer networks. It relies on Extensible Markup Language (XML) for its message format, and usually relies on other Application Layer protocols, most notably Hypertext Transfer Protocol (HTTP) and Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.

Read More
Page 2 of 212

Pin It on Pinterest