在android客户端运行时,服务端提示这样的错误:nor any of its super class is known to this context如下
<--android客户端代码-->
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
System.out.println("1");
// request.addProperty("name", "zs");
System.out.println("11");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
System.out.println("111");
envelope.bodyOut = request;
System.out.println("1111");
HttpTransportSE ht = new HttpTransportSE(URL);
System.out.println("15");
try {
// ht.call(arg, arg1, arg2);
ht.call(null, envelope);
System.out.println("16");
SoapObject Response = (SoapObject) envelope.bodyIn;
System.out.println(Response);
System.out.println(Response.getPropertyCount());
tv = (TextView) findViewById(R.id.text01);
tv.setText(Response.getProperty(0).toString());
<--myEclipse下写的服务端代码-->
public class Test {
public ArrayList getPer() {
ArrayList<Person> p = new ArrayList<Person>();
UserDao userDao = UserFactory.getUser();
p = userDao.getAll();
return p;
}
}提示的是 :这个Person类nor any of its super class is known to this context
请问各位大侠该怎么解决?
[解决办法]
应该类的定义有问题吧
[解决办法]
之前看过一篇blog,http://liuqiang5151.iteye.com/blog/847361希望对你有帮组