简体   繁体   English

解析使用Axis1.1和JAX WS wsimport生成的WSDL(使用wsimport和Axis wsdl生成客户端存根)

[英]Parsing WSDL generated using Axis1.1 with JAX WS wsimport (Generating Client stub using wsimport with Axis wsdl)

The current web services is exposed using Axis 1.1 and JDK 1.3 , I need to generate Client code using wsimport using JDK1.6. 当前的Web服务使用Axis 1.1和JDK 1.3公开,我需要使用wsimport和 JDK1.6生成客户端代码。

I am using below command to generate the Client stub using JAX-WS and JDK1.6 wsimport -keep CustomerFinder.wsdl 我正在使用以下命令来使用JAX-WS和JDK1.6生成客户端存根wsimport -keep CustomerFinder.wsdl

Error: 错误:

D:\StockQuote>wsimport -keep CustomerFinder.wsdl
parsing WSDL...

    [WARNING] src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) 'type definition' component.
  line 2 of file:/D:/StockQuote/CustomerFinder.wsdl#types?schema2

[WARNING] src-resolve.4.2: Error resolving component 'tns1:CenttricException'. It was detected that 'tns1:CenttricException' is in namespace 'http://centtric.com', but components from this namespace are not referenceable from schema document 'file:/D:/StockQuote/CustomerFinder.wsdl#types?schema2'. If this is the incorrect namespace, perhaps the prefix of 'tns1:CenttricException' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/D:/StockQuote/CustomerFinder.wsdl#types?schema2'.
line 2 of file:/D:/StockQuote/CustomerFinder.wsdl#types?schema2

[ERROR] undefined simple or complex type 'soapenc:Array'
line 2 of file:/D:/StockQuote/CustomerFinder.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 2 of file:/D:/StockQuote/CustomerFinder.wsdl

[ERROR] undefined simple or complex type 'soapenc:Array'
line 2 of file:/D:/StockQuote/CustomerFinder.wsdl

[ERROR] undefined attribute 'soapenc:arrayType'
line 2 of file:/D:/StockQuote/CustomerFinder.wsdl

Axis 1.1和JAX-ws的规范/实现完全不同。JAX-WS无法解析使用Axis 1.x生成的WSDL文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM