Getting response.getPropertyCount() value 1 in android
<p>I have posted my code for the ListLeadActivity.
   Here when the executes it works fine but I am getting the resposnse also.
   But when i m trying to alert "result.getPropertyCount()" , i am getting only 1, eventhough i have total 4 rows in the database.
   So Any one can help me to find out the problem ??</p>

<p>Here is my code....</p>

<pre><code>public class ListLeadActivity extends ListActivity {

    TextView list_Lead;
    String sessionID = "";

    private static final String SOAP_ACTION = "http://tempuri.org/GetMyLeads";

    private static final String METHOD_NAME = "GetMyLeads";

    private static final String NAMESPACE = "http://tempuri.org/";

    // Make sure URL ends with ".asmx"
    private static final String URL = "http://192.168.1.16/CRMWebService/CRMWebService.asmx";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.listlead);
        addListenerOnButton();
    }

    public void addListenerOnButton() {

        final Context context = this;

        String data = getIntent().getExtras().getString("sId1");
        showdialog("SID1", data);

        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
        request.addProperty("sessionID", data);
        SoapSerializationEnvelope mySoapEnvelop = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        mySoapEnvelop.dotNet = true;

        mySoapEnvelop.setOutputSoapObject(request);
        AndroidHttpTransport myAndroidHttpTransport = new AndroidHttpTransport(URL);
        int c = 0;
        SoapObject result = null;
        try {
            myAndroidHttpTransport.call(SOAP_ACTION, mySoapEnvelop);

            result = (SoapObject) mySoapEnvelop.bodyIn;
            c = result.getPropertyCount();
            showdialog("resutlt :--- ", result.toString());
            showdialog("", result.getPropertyCount() + "");

        } catch (Exception e) {
            Log.d("ERROR  ::  ", c + "    exception e = " + e.toString());
            e.printStackTrace();
            showdialog("Error", e.getMessage());
        }
        finally {
            Log.i("RSULT LOG", result.toString());
            Log.i("Total Count",result.getPropertyCount()+"");

        }
    }

    protected void showdialog(String title, String message) {
        // TODO Auto-generated method stub
        AlertDialog.Builder dialog = new AlertDialog.Builder(this);
        dialog.setTitle(title);
        dialog.setMessage(message);
        dialog.setPositiveButton("Ok", new DialogInterface.OnClickListener() {

            public void onClick(DialogInterface dialog, int which) {

            }
        });

        dialog.show();
        Log.i("DIALOG", "Dialog called....in Home Activity");
    }

}
</code></pre>
