当尝试使用来自 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.