java - wsimport "Cannot resolve the name..."

标签 java web-services wsdl wsimport

我一直在尝试导入以下网络服务:http://soap.genome.jp/KEGG.wsdl使用 ${JAVA_HOME}/bin/wsimport:

wsimport -version
JAX-WS RI 2.1.6 in JDK 6

但是我得到了以下错误:

parsing WSDL...

[WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
  line 19 of http://soap.genome.jp/KEGG.wsdl#types?schema1

[ERROR] undefined simple or complex type 'soapenc:Array'
  line 19 of http://soap.genome.jp/KEGG.wsdl
(....)

问题是来自 WSDL 还是来自 wsimport 的实现?我应该使用其他工具吗?

谢谢

皮埃尔

最佳答案

soapenc:Array 表示一种称为“RPC 编码”的非标准 Web 服务编码样式。这是一种非常古老的风格,曾经在微软平台上很流行;它已过时(即它不是 WS-I 规范的一部分)并且不受 JAX-WS 等现代工具的支持。

据我所知,唯一支持 RPC 编码 Web 服务的 Java 工具是 Apache Axis 1 .

关于java - wsimport "Cannot resolve the name...",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2455218/

相关文章:

java - Amazon EC2 意外停止工作

web-services - 如何指示 JAXB Marshaller 仅出于审核目的清理 base64Binary 数据?

php - 如何调试 Javascript + PHP + Web 服务

java.io.IOException : Unexpected response code for CONNECT: 405

angular - 使用 Angular 通过 HTTP 发送 SOAP 请求?

python - 使用 Amazon Web Services WSDL 的最佳 python soap 堆栈是什么?

java - 使用java从xml中删除包含实体的文档类型

java - 如何在ThreadPoolTask​​Executor中持久化对象

c# - 使 Visual Studios "Add Service Reference"功能使用现有类

java - 仅在行不存在时插入