webservice cxf error:java.lang.IllegalArgumentException: Argument(s) "type" can't be null.

客户端请求DTO和服务器端的DTO定义不一样,客户端必须定义@XmlAccessorType和@XmlType,如:

@XmlAccessorType(XmlAccessType.FIELD)

@XmlType(name = "insureAcceptMessageDTO", propOrder = {
    "applyId",
    "gateNo",
    "payAmount"
})

public class InsureAcceptMessageDTO {

...略

}

上一篇:hdu1258 Sum It Up (DFS)


下一篇:Mysql常出现的问题