【发布时间】:2012-02-16 12:37:48
【问题描述】:
当我尝试返回 List 时,它抛出 No message body writer has found for response class ArrayList。
我的代码如下:
@POST
@Path("/{scope}/{application}/tables")
@Produces("application/xml")
public List<String> getTableNames(@PathParam("scope") String scope,
@PathParam("application") String application, Request request) {
// For example, I am returning a list of String
return new ArrayList<String>(4);
}
请帮助我。提前致谢
【问题讨论】:
标签: java web-services cxfrs