WEBSERVICE

Restful Webservice Call And Get And Parse JSON Data- Android Example

In This example calling restful webservice to get json data and parse that json data.

 

Steps :

   1. Call php file (php) from server and create JSON data in php.

   2. Consume JSON data by android and show on activity.

   3. Parse JSON data and Show parsed data on screen(activity).

 


Views: 80660  |   Date: 05-Jul-2013  |   Download Source CodeRead more...
Dot Net Webservice Call - Android Example

In This example calling dot net webservice to get/send data to server. Using ksoap2-android-assembly-2.4-jar-with-dependencies.jar to make soap call.
Accessing a live web service ConvertWeight from http://www.webserviceX.NET/ which convert weight from one unit to another.

Steps :

   1. Add jar ksoap2-android-assembly-2.4-jar-with-dependencies.jar in your project.
  2. Creating class WebserviceCall.java and define webservice namespace and url and make soap call. Accessing a live web service ConvertWeight from http://www.webserviceX.NET/ which convert weight from one unit to another.
   3. Call WebserviceCall.java object to call getConvertedWeight method.
   4. Showing response in a toast(alert) and on screen.

 


Views: 35680  |   Date: 04-Jul-2013  |   Download Source CodeRead more...
videos