SoapUI正常工作,但cxf失败,出现“意外元素”错误

时间:2018-10-08 15:42:09

标签: apache spring-boot soap cxf soapui

我正在使用cxf和Spring Boot使用SOAP Web服务。当我尝试通过Java代码使用endpoint.submit()方法时,收到一条错误消息

com.sun.istack.SAXParseException2: lineNumber:1; columnNumber: 17344; unexpected element (uri:"xyz". local:"UNEXPECTED_ELEMENT_TAG"). Expected elements are <(list of elements for the specified tag in the WSDL)>

我检查了WSDL,发现该元素确实未在WSDL中定义。但是,当我通过SoapUI运行相同的请求时,似乎可以很好地处理它。即使启用了validate response选项,SoapUI仍然可以显示响应。

有什么主意,为什么SoapUI没问题时cxf不能解组响应?

0 个答案:

没有答案