如何解析 return 值表单 werbservice - ksoap2
How to parse return value form werbservice - ksoap2
我有 ASP.NET 网络服务,其中 return 一些值是这样的:
err﹕ CheckUsersResponse{CheckUsersResult=anyType{anyType=value1;
anyType=value2; anyType=value3; anyType=value4; anyType=value5;
anyType=value6; anyType=value7; anyType=value8; }; }
HttpTransportSE transp = new HttpTransportSE (URL);
transp.call(SOAP_ACTION, envelope);
SoapObject result=(SoapObject)envelope.bodyIn;
Log.e("err",result.toString());
如何解析它?
已解决
SoapObject result=(SoapObject)envelope.bodyIn;
SoapObject element;
element = (SoapObject)result.getProperty(0);
Log.e("err",element.getProperty(1).toString()); //0 1 2 3 4 ...
我有 ASP.NET 网络服务,其中 return 一些值是这样的:
err﹕ CheckUsersResponse{CheckUsersResult=anyType{anyType=value1;
anyType=value2; anyType=value3; anyType=value4; anyType=value5;
anyType=value6; anyType=value7; anyType=value8; }; }
HttpTransportSE transp = new HttpTransportSE (URL);
transp.call(SOAP_ACTION, envelope);
SoapObject result=(SoapObject)envelope.bodyIn;
Log.e("err",result.toString());
如何解析它?
已解决
SoapObject result=(SoapObject)envelope.bodyIn;
SoapObject element;
element = (SoapObject)result.getProperty(0);
Log.e("err",element.getProperty(1).toString()); //0 1 2 3 4 ...