【发布时间】:2014-08-29 11:09:56
【问题描述】:
当我尝试在命令提示符下使用以下命令使用wsimport 时,它工作正常:
wsimport -d generated C:\Users\generated\wsdlfile.xml
但是,当我尝试如下使用wsimport 时,会引发以下错误:
wsimport -d generated https://example.com/exampleService.svc?wsdl
Failed to read the WSDL document: https://example.com/exampleService.svc?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.
Failed to parse the WSDL.
我可以从浏览器访问该 URL,并且在其他系统(从我的 PC)上也可以进行同样的操作。可能是什么原因?
【问题讨论】: