0
我正在使用android studio IDE的ksoap庫也成功獲取Web服務的響應(我從調試中看到它)。通常這個代碼正在工作;然而,這次給我錯誤的任何幫助,謝謝。ksoap對象屬性不能轉換
response = (SoapObject) envelope.getResponse(); // works I do got response
for (int i = 0; i < count; i++){ // counting works, it is getting in to for loop
Object property = response.getProperty(i); // error: cannot find local variable 'property',response working but it is not capble to cast it to property.
SoapObject swListSoap = (SoapObject) property;
String SoapName = swListSoap.getProperty(TAG_NAME).toString();
...
}