SAOP Apache CXF JAXB解组异常

SAOP Apache CXF JAXB解组异常,jaxb,cxf,unmarshalling,Jaxb,Cxf,Unmarshalling,使用apache cxf调用远程服务会导致 :javax.xml.bind.UnmarshalException:意外元素(uri:“urn:remotecontract.xxxx”,local:“rates”)。预期的要素是 输出soap响应的格式如下 <soap:Body> <someresponse> .... <rates> <rates>xx</rates> <rates>yy</rates>

使用apache cxf调用远程服务会导致 :javax.xml.bind.UnmarshalException:意外元素(uri:“urn:remotecontract.xxxx”,local:“rates”)。预期的要素是

输出soap响应的格式如下

<soap:Body>
<someresponse>
....
<rates>
   <rates>xx</rates>
   <rates>yy</rates>
   <rates>zz</rates>
</rates>
                 
</someresponse>
</<soap:Body>
感谢您对解决此问题的任何帮助。如果没有解决方案来修复此错误,则作为最后手段,当前愿意从输出中抑制此数组,因为应用程序当前不需要此数组。有没有办法压制

   <element name="rates" nillable="true" type="impl:ArrayOf_xsd_string"/>
 @XmlElement(required = true, nillable = true)
    protected ArrayOfXsdString rates;

    public ArrayOfXsdString getRates() {
        return rates;
    }