javax.xml.bind.UnmarshalException

在调用Oracle EBS 的SOAP时返回的xml转换成实体异常?
javax.xml.bind.UnmarshalException: 意外的元素 (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Envelope")。所需元素为<{}esb:RESPONSE>,<{http://w3.ibm.com/gbs/ora/ei/esb/}soapenv:Body>,<{}soapenv:Envelope>,<{http://w3.ibm.com/gbs/ora/ei/esb/}soapenv:Header>

通过“ResponseEntity responseEntity = JaxbXmlUtils.convertToJavaBean(xmlData,ResponseEntity.class);”转换

返回XML字符串:

img

实体类:

img

异常信息:

img