Please help me!My English is very poor :(
——————————————————————
server hessian version:hessian-3.0.20.jar
——————————————————————
Common Code:
public class TestVO implements Serializable {
public int Id;
public String Title;
public String Content;
}
public interface BasicAPI {
public TestVO TestObjectEx();
}
——————————————————————
My Java Server(Tomcat) Servlet Code:
public class BasicService extends HessianServlet implements BasicAPI {
@Override
public TestVO TestObjectEx() {
System.out.println("TestObjectEx Return TestVO");//is ok
TestVO vo = new TestVO();
vo.Id = 1;
vo.Title = "title";
vo.Content = "Content";
return vo;
}
}
——————————————————————
My Android Client:
String url = "http://192.168.1.110:8080/HessianServer/hello.do";
HessianProxyFactory factory = new HessianProxyFactory();
BasicAPI basic = (BasicAPI)factory.create(BasicAPI.class, url,getClassLoader());
TestVO vo = basic.TestObjectEx(vo); //here error
——————————————————————
test client transfer TestVO to server is ok!but server transfer TestVO to
client is error! my email:over140@gmail.com
Thank you very much!
Original issue reported on code.google.com by over...@gmail.com on 4 Aug 2010 at 4:13
Original issue reported on code.google.com by
over...@gmail.com
on 4 Aug 2010 at 4:13