 <pre><code>package com.example.WSTest; import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; //import android.widget.SlidingDrawer;; public class WSTestActivity extends Activity { private static final String SOAP_ACTION = "http://MVIndia.com/AddActivity"; private static final String METHOD_NAME = "AddActivity"; private static final String NAMESPACE = "http://MVIndia.com/"; private static final String URL = "http://10.0.2.2/SAP/Service.asmx"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //final SlidingDrawer txt1 = (SlidingDrawer) findViewById(R.id.Spinner1); //final SlidingDrawer txt2 = (SlidingDrawer) findViewById(R.id.Spinner2); final EditText txt3 = (EditText) findViewById(R.id.editText3); final EditText txt4 = (EditText) findViewById(R.id.editText4); final EditText txt5 = (EditText) findViewById(R.id.editText5); final EditText txt6 = (EditText) findViewById(R.id.editText6); final EditText txt7 = (EditText) findViewById(R.id.editText7); final EditText txt8 = (EditText) findViewById(R.id.editText8); //final SlidingDrawer txt9 = (SlidingDrawer) findViewById(R.id.Spinner3); final EditText txt10 = (EditText) findViewById(R.id.editText10); Button button = (Button) findViewById(R.id.btnActivity); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapObject req_AddActivity = new SoapObject(NAMESPACE, METHOD_NAME); req_AddActivity.addProperty("strActivity", ""); req_AddActivity.addProperty("strActivityType", ""); req_AddActivity.addProperty("strAssignedTo", txt3.getText().toString()); req_AddActivity.addProperty("strBPCode", txt4.getText().toString()); req_AddActivity.addProperty("strBPName", txt5.getText().toString()); req_AddActivity.addProperty("strActivityDate", txt6.getText().toString()); req_AddActivity.addProperty("strContactPerson", txt7.getText().toString()); req_AddActivity.addProperty("strEndDate", txt8.getText().toString()); req_AddActivity.addProperty("strProgress", ""); req_AddActivity.addProperty("strRemarks", txt10.getText().toString()); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(req_AddActivity); HttpTransportSE androidHttpTransport = new HttpTransportSE (URL); try { androidHttpTransport.call(SOAP_ACTION, envelope); Object result = envelope.getResponse(); //if (result.toString()=="True") //{ //Toast.makeText(WSTestActivity.this, "Activity added Successfully.", Toast.LENGTH_SHORT).show(); //} Toast.makeText(WSTestActivity.this, result.toString(), Toast.LENGTH_SHORT).show(); //((TextView)findViewById(R.id.lblStatus)).setText(result.toString()); } catch(Exception E) { Toast.makeText(WSTestActivity.this, E.getClass().getName() + ": " + E.getMessage(), Toast.LENGTH_SHORT).show(); //((TextView)findViewById(R.id.lblStatus)).setText("ERROR:" + E.getClass().getName() + ": " + E.getMessage()); } //Toast.makeText(WSTestActivity.this, "Caught", Toast.LENGTH_SHORT).show(); } }); } } </code></pre> <p>Try this It's working on my local machine. The Webservice returns true if the activity is added successfully. I hope it will help you.</p>