How to call a .NET web service from android?

I need to call a web service with a URL something like: "" from android.

Please anyone help me with a full example?

  • Force update android app when new version available
  • Interpreting Multicore Performance Trace (Eclipse/Android)
  • Understanding Android's <layer-list>
  • getLoaderManager().initLoader() doesn't accept 'this' as argument though the class (ListFragment) implements LoaderManager.LoaderCallbacks<Cursor>
  • Back button closing app even when using FragmentTransaction.addToBackStack()
  • Android: Can somebody please explain what is Activity/Context/Intent in android?
  • Related posts:

    Android set navigation drawer list to open exact half of the screen for all device screen
    Unable to open debugger port : &ldquo;Connection refused&rdquo;
    How to disable home button in Android like lock screen apps do?
    How can I access getSupportFragmentManager() in a fragment?
    How to group android notifications like whatsapp?
    Setting thumb to a particular position(not the offset) of seekbar programmatically?
  • How to make a PreferenceActivity launch a Dialog to set a custom preference
  • setRotation(90) to take picture in portrait mode does not work on samsung devices
  • How to include 10“ and 7” layouts properly
  • Getting default padding for AlertDialog
  • The method managedQuery(Uri, String, String, String, String) from the type Activity is deprecated
  • Watch for changes in external USB storage for Honeycomb or later Android versions
  • One Solution collect form web for “How to call a .NET web service from android?”

    Finally, i got the solution for my own question.

    Here is the code:

    package projects.ksoap2sample;
    import org.ksoap2.SoapEnvelope;
    import org.ksoap2.serialization.SoapObject;
    import org.ksoap2.serialization.SoapSerializationEnvelope;
    import org.ksoap2.transport.HttpTransportSE;
    import android.os.*;
    import android.widget.TextView;
    public class ksoap2sample extends Activity {
        /** Called when the activity is first created. */
        private static final String SOAP_ACTION = "";
        private static final String METHOD_NAME = "HelloWorld";
        private static final String NAMESPACE = "";
        private static final String URL = "";
        TextView tv;
        public void onCreate(Bundle savedInstanceState) {
        public void call()
            try {
                SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
                request.addProperty("passonString", "Rajapandian");
                SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
                HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
      , envelope);
                Object result = (Object)envelope.getResponse();
            } catch (Exception e) {


    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.