【发布时间】:2014-08-06 13:46:26
【问题描述】:
我已将当前 Axis 版本从axis1.1.jar 升级到axis1.4.jar。我还把 JDK 从 1.3 升级到了 1.6。
自从我升级 JDK 版本后,现有的 Web 服务使用者代码出现编译错误。使用以下代码进行了纠正。
// oper.setStyle(org.apache.axis.enum.Style.RPC);
// oper.setUse(org.apache.axis.enum.Use.ENCODED);
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
问题:当我们使用升级版的 Axis1.4 和 JDK1.6 使用现有的 Web 服务时,出现以下错误。
错误:
com.tdi.lh.cprm.customerlink.ServiceException: 200:General Data Error:15002:Request/Response Schema Validation Error
at com.tdi.lh.cprm.customerlink.CustomerInsuranceIdentifierFinder.find(CustomerInsuranceIdentifierFinder.java:67)
at CPRMLib.getIINumber(CPRMLib.java:1449)
at CPRMLib.main(CPRMLib.java:2060)
Caused by: 200:General Data Error:15002:Request/Response Schema Validation Error
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
注意:Axis1.1 和 JDK1.3 上的现有 Web 服务使用者可以正常工作。 我已经解决了其他几个问题,但是无法克服这个问题。非常感谢任何帮助。
【问题讨论】:
标签: java soap upgrade axis jax-rpc