当我尝试使用wsimport命令提示符下面的命令时,它工作正常:
wsimport -d generated C:\Users\generated\wsdlfile.xml
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试使用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.
Run Code Online (Sandbox Code Playgroud)
我可以从浏览器访问URL,同样的事情是从其他系统(从我的PC)开始.可能是什么原因?
Die*_*eno 12
我已通过禁用所有代理设置在Windows上解决了此问题,如下所示:
Internet Options > Connections > Lan Settings > Disable all check boxes
Run Code Online (Sandbox Code Playgroud)
注意:只是添加localhost或我的IP地址作为我的代理设置的例外不适合我.
| 归档时间: |
|
| 查看次数: |
20384 次 |
| 最近记录: |