webService 显示对象数组

for(int i=0;i                    SoapObject detail =(SoapObject)soapObject.getProperty(i); 
                   user order=new user ();
                                     
                   //数组
                   SoapObject soap_pic_array = (SoapObject)detail.getProperty("product_pic_array");
                   SoapObject soap_title_array = (SoapObject)detail.getProperty("product_title_array");
                   String []product_pic_array = new String[soap_pic_array.getPropertyCount()];
                   String []product_title_array = new String[soap_title_array.getPropertyCount()];
                   if(soap_pic_array!=null){
                    for(int j=0;j                     product_pic_array[j]= soap_pic_array.getProperty(j).toString();
                    }
                   }
                   
                   if(soap_title_array!=null){
                    for(int j=0;j                     product_title_array[j]= soap_title_array.getProperty(j).toString();
                    }
                   }
                   
                   order.setProduct_pic_array(product_pic_array);
                   order.setProduct_title_array(product_title_array);
                      list.add(order);
                  }

你可能感兴趣的:(webService,显示对象数组)