action2013 / hessdroid

Automatically exported from code.google.com/p/hessdroid
0 stars 0 forks source link

Please help me #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This problem is clear:
factory.setHessian2Reply(false);

:)

Original comment by over...@gmail.com on 4 Aug 2010 at 5:56