我尝试从xml反序列化到Java的服务客户端类,但遇到以下错误,我从wsdl生成Java代码,我正在使用XmlMapper库,请帮助
属性“时间”的设置器定义冲突: org.apache.axis.types.Time#setTime(1 params)与 org.apache.axis.types.Time#setTime(1个参数)
示例代码
XmlMapper xmlMapper = new XmlMapper();
String xml2 = inputStreamToString(new BOMInputStream(new FileInputStream(file),false));
DespatchAdviceType despatchAdvice = xmlMapper.readValue(xml2, DespatchAdviceType.class);