Soap service (KSoap2 lib)


 

Steps to do before:

  1. Download the latest version of KSoap2 library ( jar file ) from here.
  2. Copy the downloaded library file to “libs” directory of the project structure and add compile files(‘libs/your lib name here’) is in your build.gradle.

 

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, TemperatureAsyncTask and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

Step 6 : Open build.gradle(Module: app) and add following code :

ScreenShot:

soap_fahrenheit_to_celsiussoap_celsius_to_fahrenheit

Download SourceCode