停止框架使用 HTTP 代理

Kor*_*nna 5 wsdl scala http-proxy playframework playframework-2.0

在几乎淹没在沮丧的眼泪之后,我不得不问你一个问题。

我的 play(2.0.3,scala)应用程序正在使用 wsdl,如果我在localhost上运行我的 webservice 的开发版本,它运行得非常好,这使得 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 代理用于 Internet 使用,这就是 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 中删除了整个代理并重新启动了所有内容,但我仍然不知道为什么那天它不起作用。有什么方法可以让我的播放应用程序独立于系统设置?

Jam*_*ard 0

尝试:

play -Dhttp.noProxyHosts="testserver.company.net" run
Run Code Online (Sandbox Code Playgroud)