首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

在android客户端运行时,服务端提示这样的异常:nor any of its super class is known to this context如下

2012-03-19 
在android客户端运行时,服务端提示这样的错误:nor any of its super class is known to this context如下

在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希望对你有帮组

热点排行