在几乎被沮丧的泪水淹没之后,我不得不问你一个问题。
我的 play (2.0.3, scala) 应用程序正在使用一个 wsdl,如果我在localhost上运行我的 web 服务的开发版本,它工作得非常好,这使得 wsdl-url 类似于http://localhost:8080/Service/Service?wsdl
. 当我尝试使用来自远程测试系统服务器的 WSDl 时,使用类似 的 Url http://testserver.company.net:8084/Service/Service?wsdl
,我得到:
[WebServiceException: Failed to access the WSDL at: http://testserver.company.net:8084/Service/Service?wsdl. It failed with: Got Server returned HTTP response code: 502 for URL: http://testserver.company.net:8084/Service/Service?wsdl while opening stream from http://testserver.company.net:8084/Service/Service?wsdl.]
我的公司使用 http 代理来上网,这就是 502 错误的原因。所以我想玩停止使用代理。
到目前为止,我已经尝试过(一起):
- 从 Internet Explorer 中删除的代理
- 设置 _JAVA_OPTIONS=-Dhttp.noProxyHosts="testserver.company.net"
- 设置 JAVA_OPTIONS=-Dhttp.noProxyHosts="testserver.company.net"
- 播放运行 -Dhttp.noProxyHosts="testserver.company.net"
这些都不起作用。有任何想法吗?如何停止使用 HttpProxy 进行游戏?
编辑:
我发现它与 java Webservices-api / jaxws 库有关。有任何想法吗?
编辑 2012-10-17:
它似乎取决于系统代理设置。我仍然不知道为什么那天它没有工作,尽管我从 IE 中删除了整个代理并重新启动了一切。有什么方法可以让我的游戏应用程序独立于系统设置?