Axis2 not returning own objects

后端 未结 2 509
陌清茗
陌清茗 2021-01-26 16:33

I\'ve written some webservices where some return a simple String (this ones work) and other returning a list of objects. No, axis2 (1.5.1) cannot handle collection types, so I c

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-26 17:20

    Actually, the return type of the Method of Web service should be non-generic.

    it should not be Object , or just a List...

    so , return a specific Person class object ..if one object of Person class need to return or if list of object is there.....use... list.....

    do change....and enjoy....!!!!!

提交回复
热议问题