我试图通过从家里连接到我的组织的VPN来使用SOAP UI。但是我收到了这个错误 -
“获取响应时出错:org.apache.http.conn.HttpHostConnectException:连接到 https://xxx.xxxxxxx.xxxxxx.xxx:xxxx拒绝“
如何摆脱这个错误? 是否必须对SOAP UI设置执行某些操作?
编辑 - 下面是error.log文件
Wed May 01 13:57:00 *** 2013:ERROR:org.apache.http.conn.HttpHostConnectException: Connection to http://stage2cpplvs52.qa.paypal.com:7021 refused
org.apache.http.conn.HttpHostConnectException: Connection to http://stage2cpplvs52.qa.paypal.com:7021 refused
at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:321)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:299)
... 16 more
答案 0 :(得分:14)
Go to file > Preferences >Proxy settings and set Proxy to :None
试试这个
答案 1 :(得分:1)
企业部门的这个问题是由于“未向您的用户ID提供环境和端口访问”。
请联系公司网络服务团队并请求访问该文件夹。
如何注意这个问题?
转到命令提示符,
输入以下命令
ping“端点网址”
按回车。
如果您没有收到任何回复,则表示您无法访问该URL(请致电您的系统管理员并请求访问该URL)。
如果你有回应,
然后在命令提示符下输入以下命令,
telnet“端点URL”“端口号”
按回车。
如果您没有得到回复,则表示您无权访问该特定“端点网址”的端口。因此,请求您的系统管理员提供对该URL和特定端口
的访问权限答案 2 :(得分:0)
您必须在首选项中配置或关闭代理服务器,或检查防火墙设置。
答案 3 :(得分:0)
当您尝试连接的服务器关闭或您尝试访问的服务未启动时,会发生这种情况。
在您的情况下,看起来像服务器' stage2cpplvs52.qa.paypal.com'在启动时出现故障或出现问题。
在从SOAP UI连接之前,尝试重新启动/启动服务器并从浏览器访问服务。
答案 4 :(得分:0)
启用“Expect-Continue”,现在一切正常。
文件→HTTP设置→期望 - 继续:向传出请求添加期望 - 继续标头
参考: http://www.soapui.org/Working-with-soapUI/preferences.html rfc 2616
答案 5 :(得分:0)
对我来说,将我的应用程序的托管模型更改为Out Of Process有所帮助。 转到应用程序属性->调试->托管模型->进程外