【问题标题】:JAX-WS Duplicate complex type with different case in wsdl filewsdl文件中具有不同大小写的JAX-WS重复复杂类型
【发布时间】:2014-04-16 07:20:49
【问题描述】:

我的问题是:

在使用 xjc 命令编译 WSDL 文件以生成 java 对象时,出现控制台错误...

parsing a schema...
compiling a schema...
[ERROR] A class/interface with the same name "com.saico.ws.dto.PERSONinfodata" is already in use. Use a class customization to resolve this conflict.
  line 23 of file:/D:/WSDL/TESTService.wsdl

[ERROR] (Relevant to above error) another "Personinfodata" is generated from here.
  line 29 of file:/D:/WSDL/TESTService.wsdl

[ERROR] This error is caused because on Windows you cannot have both "Personinfodata.java" and "PERSONinfodata.java" in the same directory.
unknown location

Failed to produce code.

应用命令:-> D:\WSDL>xjc -wsdl -p com.saico.ws.dto MOCService.wsdl

任何帮助将不胜感激,几天以来我一直在努力解决它。提前谢谢..

如果需要,我会附上 WSDL 文件。

【问题讨论】:

    标签: java xml web-services soap wsdl


    【解决方案1】:

    您有一个同名实体,位于两个不同 XML 模式中的同名命名空间(同一个命名空间?)。 例如,您在 Contact.xsd 和 Opportunity.xsd 模式中都有 Book 实体/类型。 此类问题的解决方案是使用自定义,详情请参阅Class Customization 部分或samples

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-05
      • 2014-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-06
      • 2013-11-17
      • 1970-01-01
      相关资源
      最近更新 更多