How to call a local web service from an Android mobile application

Somehow I managed to solve my problem and I am answering this question so that it be can be useful to people who see this post in the future. So here is the modified code: package com.demo; import java.net.SocketException; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.app.ProgressDialog; import android.os.AsyncTask; … Read more