java 无法在 SOAPUI 中导入 WSDL 文件 - 弹出 NT 身份验证(加载 WSDL 时出错)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27860655/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot import WSDL file in SOAPUI - NT authentication pop up (Error loading WSDL)
提问by Dejan
I never faced similar problem before,
我以前从未遇到过类似的问题,
I tried with SOAP 4.0.1 and also with SOAP 5.1.2. I tried it on my windows but also and on Windows Server 2008 I try to import WSDL: NT Authentication dialog is presented: Specify NT Authentication Credentialsto populate Username,Password,Domain
我尝试过 SOAP 4.0.1 和 SOAP 5.1.2。我在 Windows 和 Windows Server 2008 上尝试过,我尝试导入 WSDL:显示 NT 身份验证对话框: 指定 NT 身份验证凭据以填充用户名、密码、域
I am able to open the WSDL definition in Firefox:
我可以在 Firefox 中打开 WSDL 定义:
http://192.168.0.242/SO/Services/ScheduleService.svc?wsdl
after entering username and password
输入用户名和密码后
but when trying to import WSDL file or when trying to import wsdl file using location URL
但是当尝试导入 WSDL 文件或尝试使用位置 URL 导入 wsdl 文件时
Error loading WSDL
There was something wrong with the WSDL you are trying to import
Error loading
[http://192.168.0.242/SO/Services/ScheduleService.svc?wsdl=wsdl0]: org.apache.xmlbeans.XmlException:
org.apache.xmlbeans.XmlException: error: Reference to undefined entity: raquo
回答by Peter Sladek
I got same error using latest Soap UI 5.3. No hacking with configuration helped (proxy none, authenticate preemptively etc). In the end I imported WSDL from disk. Calling of operations through NTLM then worked without any problems. It seems like a bug in SoapUI when importing WSDL through NTLM in some environments.
我在使用最新的 Soap UI 5.3 时遇到了同样的错误。没有帮助配置的黑客攻击(代理无,先发制人等)。最后我从磁盘导入了 WSDL。然后通过 NTLM 调用操作没有任何问题。在某些环境中通过 NTLM 导入 WSDL 时,这似乎是 SoapUI 中的一个错误。
Update: tested that enabling anonymous auth and disabling windows auth in IIS resolves the issue with import in SoapUI. So it is definitely some kind of bug in SoapUI during import through NTLM.
更新:测试在 IIS 中启用匿名身份验证和禁用 Windows 身份验证解决了在 SoapUI 中导入的问题。所以这肯定是通过 NTLM 导入过程中 SoapUI 中的某种错误。
回答by HitheshPN
You change the proxy settings under Preferences>Proxy Setting> to none this should solve the authentication issue which you are facing.
您将 Preferences>Proxy Setting> 下的代理设置更改为 none 这应该可以解决您面临的身份验证问题。
回答by davidluckystar
Try to open this WSDL with any XML validator and see if it passes thru. The error message say
尝试使用任何 XML 验证器打开此 WSDL 并查看它是否通过。错误信息说
Reference to undefined entity: raquo
so you need to be sure that this entity is presented in your WSDL or imported schemas.
因此您需要确保该实体出现在您的 WSDL 或导入的模式中。
If your WSDL is 100% correct and "raquo" is there then I can only suggest you to download WSDL to local file with all schemas, change schemaLocation
to local relative paths and try importing this local file.
如果您的 WSDL 是 100% 正确并且“raquo”在那里,那么我只能建议您将 WSDL 下载到具有所有模式的本地文件,更改schemaLocation
为本地相对路径并尝试导入此本地文件。
回答by mljm
had the same problem here, with a WSDL that works on a different system. It was the proxy setting that was causing the problem, and as I don't need the proxy server, just disabling it through the browser menu solved it for me.
在这里遇到了同样的问题,WSDL 可以在不同的系统上运行。是代理设置导致了问题,因为我不需要代理服务器,只需通过浏览器菜单禁用它就为我解决了。
回答by Bernhard Colby
I had the same problem. Providing proxy credentials solved the issue for me.
我有同样的问题。提供代理凭据为我解决了这个问题。
回答by Rajthilak R
I too faced this issue. Solution - Connect to Open Network (Non office network) and sent the Proxy setting in SOAPUI as None.
我也遇到过这个问题。解决方案 - 连接到开放网络(非办公网络)并将 SOAPUI 中的代理设置发送为无。