我正在开发一种甲状腺应用,在这种应用中,我不得不将数据从尿液中分出来,并在清单中显示。 我已把acc升成样本代码。 我将主要班级扩大到违约的手递班。 并使用主角、起端和终点标。 我将acc升至低于代码
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://asia.vmsc.vmsplay.com/vmsc.asmx/GetCountries");
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("AccountId","vmsfree48jfwe83dwe8"));
nameValuePairs.add(new BasicNameValuePair("Countries","US"));
// nameValuePairs.add(new BasicNameValuePair("Language","en"));
UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(nameValuePairs);
httppost.setEntity(formEntity);
// Execute HTTP Post Response
HttpResponse response = httpclient.execute(httppost);
InputStream is = response.getEntity().getContent();
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser parser = factory.newSAXParser();
XMLReader reader = parser.getXMLReader();
MyXMLHandler myXMLHandler = new MyXMLHandler();
reader.setContentHandler(myXMLHandler);
reader.parse(new InputSource(is));
sitesList = MyXMLHandler.sitesList;
countryname=new String[sitesList.getisocountrycode().size()];
isocountrycode =new String[sitesList.getisocountrycode().size()];
countrycode=new String[sitesList.getisocountrycode().size()];
idd=new String[sitesList.getisocountrycode().size()];
image=new String[sitesList.getisocountrycode().size()];
image1=new String[sitesList.getisocountrycode().size()];
for (int j = 0; j < sitesList.getisocountrycode().size(); j++) {
countryname[j] = sitesList.getcountryname().get(j);
System.out.println(" id "+sitesList.getcountryname().get(j));
isocountrycode[j]=sitesList.getisocountrycode().get(j);
System.out.println("title "+sitesList.getisocountrycode().get(j));
countrycode[j] = sitesList.getcountrycode().get(j);
System.out.println("desc "+sitesList.getcountrycode().get(j));
idd[j] = sitesList.getProductcount().get(j);
System.out.println("prociunt "+sitesList.getProductcount().get(j));
image[j] = sitesList.getidd().get(j);
System.out.println("image "+sitesList.getidd().get(j));
System.out.println("image length "+sitesList.getidd().get(j).length());
image1[j] = sitesList.getImage1().get(j);
System.out.println("image1 "+sitesList.getImage1().get(j));
但是,我仍没有获得我所描述的数据,
Can anyone tell where I have done wrong
Thanks in advance Tushar