Android calling .net webservice Ksoap2

谁都会走 提交于 2019-11-28 14:38:42

This is a multidimensional array of properties, it goes like :

anyType //property 0 
{
  NewDataSet=anyType // property 0 [0]
   {
     string=77777;
   }
};

you can parse it manually (this is java code):

SoapObject yourResponseObject = (SoapObject) soapEnvelope.bodyIn;
SoapObject array = (SoapObject) yourResponseObject .getProperty(0);// this is -->anyType //property 0           

SoapObject NewDataSetArray= (SoapObject)array .getProperty(0);// this is--> // property 0 [0]   
//PropertyInfo propertyInfo = new PropertyInfo();

//NewDataSetArray.getPropertyInfo(0, propertyInfo);

String temp = null;
//if(propertyInfo.name.equalsIgnoreCase("NewDataset"))
//{
    temp = NewDataSetArray.getProperty(0).toString();// this is 77777
//} 

i did not test it, but it should work and i guess you got the point.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!