【发布时间】:2014-05-21 22:05:05
【问题描述】:
我正在尝试连接到旧的 Web 服务,当我使用 wsimport 和其他工具自动生成类时出现错误。
computer-name:tmp me$ wsimport -keep -verbose https://www.entech.us/sigmaaldrich/CarbonFootprintStats.asmx?WSDL
parsing WSDL...
[WARNING] src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'https://www.entech.us/sigmaaldrich/CarbonFootprintStats.asmx?WSDL#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'https://www.entech.us/sigmaaldrich/CarbonFootprintStats.asmx?WSDL#types?schema1'.
line 30 of https://www.entech.us/sigmaaldrich/CarbonFootprintStats.asmx?WSDL#types?schema1
[ERROR] undefined element declaration 's:schema'
line 30 of https://www.entech.us/sigmaaldrich/CarbonFootprintStats.asmx?WSDL
问题是我需要让他们编辑 WSDL 以删除 s:schema 吗? WSDL 通过了验证,这就更奇怪了。
我知道仍然可以提取数据,因为许多在线 SOAP 客户端测试工具甚至 Eclipse 都允许我导航和执行这些方法。
提前感谢您的指导!
【问题讨论】:
标签: java web-services soap wsdl wsimport