title: Passing ArrayList of custom object to kSOAP function
body: <p>This is the function which is to call the function in the server to perform some task. But i have to pass in a ArrayList and a String value. I have trouble passing the ArrayList to the server. Can anyone tell me what i should do?</p>
  
  <pre><code>public void findLocation(ArrayList&lt;APData&gt; apdatalist, String profilename){
      SoapObject request = new SoapObject(NAMESPACE, "FindLocation");
  
      PropertyInfo quotesProperty = new PropertyInfo();
      quotesProperty.setName("profileName");
      quotesProperty.setValue(profilename);
      quotesProperty.setType(String.class);
      request.addProperty(quotesProperty);
  
      request.addProperty("AP_List", APData.class);
  
      envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
      envelope.dotNet = true;
      envelope.setOutputSoapObject(request);
  
      HttpTransportSE httpRequest = new HttpTransportSE(URL);
      httpRequest.debug = true;
      String result = "";
  
      try
      {
          httpRequest.call(SOAP_ACTION, envelope);
          Log.e("Request",httpRequest.requestDump.toString());
  
          SoapPrimitive response = (SoapPrimitive)envelope.getResponse();
          Log.e("Response",httpRequest.responseDump.toString());
  
          result =  response.toString();
          if(result == null){
              Log.e("AndroidRuntime", "No location result is return!");
          }
      }
      catch(Exception e)
      {
          e.printStackTrace();
      }
      //return temp;
  }
  </code></pre>