IWAB0399E 从 WSDL 生成 Java 时出错:java.io.IOException:类型 {http://www.w3.org/2001/XMLSchema}array 被引用但未定义

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20901089/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 05:08:43  来源:igfitidea点击:

IWAB0399E Error in generating Java from WSDL: java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}array is referenced but not defined

javaeclipsewsdlaxis

提问by pise

I am getting IWAB0399E Errorin generating Java from WSDL: java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}array is referenced but not defined' while consuming web service using eclipse Juno.

我在从WSDL生成 Java时遇到IWAB0399E 错误:java.io.IOException: Type { http://www.w3.org/2001/XMLSchema}array is referenced but not defined' 使用 Eclipse Juno 使用 Web 服务时。

Tools used

使用的工具

  1. Eclipse 4.2
  2. Jboss 4.2
  3. Axis 1
  1. 日食 4.2
  2. Jboss 4.2
  3. 轴 1

Please advice.

请指教。

Regards, pise

问候,皮斯

回答by pise

I have seen very similar problem quite a few times, also i can see you are using Axis.v1 And this could cause the problem. Try using Axis.v2 when doing WSDL2Java. PS. Look also at JAX-WS import tool, its quite fast efficient and easy to use and implement ( also regarding dynamic client ) You can see JAX-WS HERE

我已经多次看到非常类似的问题,我也可以看到您正在使用 Axis.v1 这可能会导致问题。在执行 WSDL2Java 时尝试使用 Axis.v2。附注。也看看 JAX-WS 导入工具,它非常快速高效且易于使用和实现(也关于动态客户端)你可以在这里看到 JAX-WS

回答by Etienne Tonnelier

As a workaround, you may remove the part of the wsdl, responsible for schema definition. This may solve your problem. Remove this part below:

作为一种解决方法,您可以删除 wsdl 中负责模式定义的部分。这可能会解决您的问题。删除下面的这部分:

<types>
     [...]
</types>