androidHttpTransport.call(SOAP_ACTION + GetPersonnel_METHOD, envelope);
SoapObject result = (SoapObject)envelope.getResponse();
这是我得到的肥皂反应
anyType{EntityKey=anyType{EntityContainerName=DSS_SOTUBIEntities;
EntityKeyValues=anyType{EntityKeyMember=anyType{Key=PersonnelID; Value=2; }; };
EntitySetName=Personnels; }; Adresse=ariana; CAB=784555584; CodeCommande=1; CommandeID=5;
CommercialID=2; DateCreation=2013-12-13T00:00:00;
查看属性
String res=null;
SoapObject pii = (SoapObject)result.getProperty(0);
res = pii;
res显示以下结果:
anyType{EntityContainerName=DSS_SOTUBIEntities;
EntityKeyValues=anyType{EntityKeyMember=anyType{Key=PersonnelID; Value=2; }; };
EntitySetName=Personnels;
和getProperty(1)
SoapObject pii = (SoapObject)result.getProperty(1);
res show“undefined”
如何恢复Adresse,CAB,CodeCommande ...
的价值Thanx寻求帮助。
答案 0 :(得分:0)
试试这个
SoapObject Address = (SoapObject)result.getProperty("Adresse");
你错过了肥皂回应中的结束括号。我认为这是在回应的最后。
如果不起作用,请使用
检查可用的属性数量response.getPropertyCount();