问题描述
我使用了 How to generate classes from wsdl using Maven and wsimport? 中答案中的 maven 插件, 但我收到了以下一些错误(因为工作而清理):
wsdl 由多个定义如下的“消息”组成:
<wsdl:message name="Name_in">
<wsdl:part element="xx:CommonName" name="NameReqType"/>
</wsdl:message>
地点:
[ERROR] A class/interface with the same name "com.package.CommonName" is already in use. Use a class customization to resolve this conflict. [ERROR] (Relevant to above error) another "ServiceClass" is generated from here.
并行文件夹中也有很多相关的xsd,结果如下
[ERROR] Two declarations cause a collision in the ObjectFactory class.
[ERROR] (Related to above error) This is the other declaration.
任何帮助将不胜感激,我对 wsimport 的使用不多。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)