0
我使用使用ksoap2在android系統越來越參數錯誤
我收到此錯誤
SoapFault - faultcode: 'soap:Server' faultstring: 'Server was unable to process request. ---> The parameterized query
java.lang.ClassCastException: org.ksoap2.SoapFault cannot be cast to org.ksoap2.serialization.SoapObject
我使用加入參數的PropertyInfo
PropertyInfo fromProp =new PropertyInfo();
fromProp.setName("uname");
fromProp.setValue("test");
fromProp.setType(String.class);
request.addProperty(fromProp);
PropertyInfo toProp =new PropertyInfo();
toProp.setName("pwd");
toProp.setValue("test");
toProp.setType(String.class);
request.addProperty(toProp);
調用Web服務要求出現這樣的
validLogin{uname=simar; pwd=simar; }
事我試圖
1)註釋和的取消註釋以下行
envelope.dotNet = true;
2)否服務器側誤差作爲不帶參數的連接可以是 完成並得到虛擬結果
3)即使想這
request.addProperty("uname","simar");
request.addProperty("pwd","simar");