title: How to send arrays as soap objects in android web services
body: <p>First of all, I have to thank StackOverflow and all its members for the past few months android help. My learning curve has been steep and I don't thiink I would have gotten this far without your help. </p>
  
  <p>I need to send an array as a soap object to a web service but keep getting an "empty submitted ID list" response from the server. I am hoping someone can tell me why. </p>
  
  <p>My code is as follows: </p>
  
  <pre><code>public void FeedbackRead(String feedbackID) {
               String soapMethod = "feedbackRead";
               SoapObject request = new SoapObject(NAMESPACE, soapMethod);
               request.addProperty(getProperty("patientLogin", PATIENT_LOGIN));
               request.addProperty(getProperty("passwd", PATIENT_PASS));
               request.addProperty(getProperty("IDsRead", new String[]{feedbackID}));
               String res = doPost(request, soapMethod);           
               Log.i(soapMethod + "SOAP_RESPONSE ", res);
     }
  </code></pre>
  
  <p>And the PropertyInfo method is</p>
  
  <pre><code>private PropertyInfo getProperty(String name, String[] val) {
        PropertyInfo info = new PropertyInfo();
        info.name = name;
        info.namespace = NAMESPACE;
        info.type = PropertyInfo.VECTOR_CLASS;
        Vector&lt;String&gt; vct = new Vector&lt;String&gt;();
        for (int i = 0; i &lt; val.length; i++)
           vct.add(val[i]);
        info.setValue(vct);
        return info;
     }
  </code></pre>
  
  <p>How exactly should I add a string array to a request SoapObject so that I can send it to the server? </p>
  
  <p>OK, I know that the soap objects properties are as should be because I have printed them to logcat and they are as should be. I am pasting below the soap object as per logcat:</p>
  
  <pre><code>feedbackRead{patientLogin=patient1; passwd=pat1; IDsRead=[27d49cea-7968-457a-b377-7bd70bbca1a1, 27d49cea-7968-457a-b377-7bd70bbca1a2]; }
  </code></pre>
  
  <p>The next thing i do is </p>
  
  <pre><code>String res = doPost(request, soapMethod);
  </code></pre>
  
  <p>What could possibly be going wrong? </p>
  
  <p>Res always contains the message: empty submitted ID list!</p>
  
  <p>Is there any way to convert it so I can paste it into my browser window to see does it work? Or is that a completely moronic question? </p>
  
  <p>Thanks so much, </p>
  
  <p>Elaine. </p>