我正在处理事件列表的应用程序,应用程序从数据库中获取事件,事件到达应用程序抛出webservice正确,但我的问题是绑定的ListView的适配器中的肥皂对象,我这样做ksoap2 webservice help
try {
aht.call(SOAP_ACTION, envelope);
resultsRequestSOAP = (SoapObject) envelope.getResponse();
// rs = (SoapPrimitive) envelope.getResponse();
// resultString = (List<UBAEvent>)envelope.getResponse();
} catch (Exception e) {
e.printStackTrace();
}
int x = resultsRequestSOAP.getPropertyCount();
adapter = new MyArrayAdapter(this);
UBAEvent ubaEvent = new UBAEvent();
for (int i = 0; i < x; i++) {
ubaEvent = (UBAEvent) resultsRequestSOAP.getProperty(i);
adapter.add(ubaEvent);
}
但它是行不通的任何人可以帮助我如何将肥皂对象绑定到适配器?
的http:// seesharpgears。 blogspot.com/2010/10/ksoap-android-web-service-tutorial-with.html – PedroAGSantos 2011-06-13 14:09:43