Stop the framework using HTTP Proxy

After almost drowning in tears of disappointment, I have to ask you a question.

My play application (2.0.3, scala) consumes wsdl, which works fine if I run the dev version of my web service on localhost , which makes wsdl-url something like http://localhost:8080/Service/Service?wsdl . When I try to use WSDl from a remote test system server, with a URL like http://testserver.company.net:8084/Service/Service?wsdl , I get:

[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.]

My company uses the http proxy server for use on the Internet, which is the cause of error 502. Therefore, I want the game to stop using proxies.

So far I have tried (all together):

  • remote proxy from Intenet Explorer
  • set _JAVA_OPTIONS = -Dhttp.noProxyHosts = "testserver.company.net"
  • set JAVA_OPTIONS = -Dhttp.noProxyHosts = "testserver.company.net"
  • play run -Dhttp.noProxyHosts = "testserver.company.net"

None of this worked out. Any ideas? How to stop playback using HttpProxy?

EDIT:

I found this to be related to the java Webservices-api / jaxws libraries. Any ideas?

EDIT 2012-10-17:

It depends on the proxy server settings. I still don’t know why it didn’t work that day, although I removed the entire proxy from IE and restarted everything. Is there any way to make my game application independent of system settings?

+4
source share
2 answers

Try:

 play -Dhttp.noProxyHosts="testserver.company.net" run 
0
source

I noticed a typo in your property, the correct property is http.nonProxyHosts , so add and add n after no.

0
source

Source: https://habr.com/ru/post/1436103/


All Articles