【问题标题】:error parsing wsdl with wsimport使用 wsimport 解析 wsdl 时出错
【发布时间】:2011-06-25 05:35:27
【问题描述】:

当尝试使用来自 JAX-WS RI 2.2.4-b01 的 wsimport 从 https://api.betfair.com/global/v3/BFGlobalService.wsdl 生成类时,我收到以下警告:

[WARNING] src-resolve: Cannot resolve the name 'types:LoginReq' to a(n) 'type definition' component.
  line 1841 of file:/Users/Daniel/Desktop/lett/wsdl/BFGlobalService.wsdl#types?schema2

[WARNING] src-resolve: Cannot resolve the name 'types:LoginReq' to a(n) 'type definition' component.
  line 1841 of file:/Users/Daniel/Desktop/lett/wsdl/BFGlobalService.wsdl#types?schema2

发生了什么错误?该文件被保存到我的磁盘,因为当我将 URL 作为参数传递时,它给了我另一个错误:

[ERROR] java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Failed to read the WSDL document: https://api.betfair.com/global/v3/BFGlobalService.wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s): 

 At least one WSDL with at least one service definition needs to be provided.

【问题讨论】:

    标签: java wsdl jax-ws wsimport


    【解决方案1】:

    我也遇到过类似的问题

    src-resolve: Cannot resolve the name 'types:LoginReq' to a(n) 'type definition' component.
    

    我们可以放心地忽略警告并继续前进。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-08-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多