2

所以我有一个供应商应用程序,它使用 Axis2 创建了他们的所有服务。无论出于何种原因,如果我使用 Axis2 的 WSDL2Java 生成客户端代码,它就可以正常工作,但是每当我使用 CXF 生成它时,我就会到处出错,而且我不知道如何使 CXF工作

[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.0:wsdl2java (generate-sources) on project unitoffers: Thrown by JAXB:
[ERROR] Thrown by JAXB:
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1760 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR]
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1831 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR]
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1852 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

Axis2 是否在做一些 CXF 无法解释的真正时髦的事情?如前所述,我可以使用 Axis2 生成代码,但几乎所有其他服务都是 CXF,我不想在我的项目中混合搭配服务(更不用说有些项目需要同时拥有 Axis2 和CXF 才能工作,这样会让事情变得一团糟)。

4

0 回答 0