Basically, I'm trying to make SOAP calls from a Tomcat server via a corporate proxy/ firewall (which I have no direct control over), I've tried to add info to the catalina.properties file as shown:
http.proxyPort=80
http.proxyHost=www-proxy.company.com
I'm still getting timeouts in the stdout logs. Do I need to do anything else and if not is there another way to test the SOAP calls?
Create a setenv.sh (or setenv.bat if running windows), if you don't already have one, and add the following java options:
This should work nicely.
You can implement HTTP proxy, https proxy and non-http proxy also in tomcat. You need to update two files i.e,
../bin/Catalina.sh
and ../conf/cataliana.properties
.Detailed configuration and steps are mentioned here : http://w3devops.com/add-http-https-proxy-http-non-proxy-jenkins-via-tomcat-server/
If you only need soap calls to go via proxy, you can use jproxyloader. With this library you can pass soap calls via proxy and all the other calls will not use proxy. See http://jproxyloader.sourceforge.net/examples/web-application-on-tomcat.html for complete setup.
To get tomcat running inside my docker container I used the following settings:
JAVA_OPTS=-Dhttps.proxyHost=PROXYHOST -Dhttps.proxyPort=PROXYPORT -DproxySet=true -DproxyHost=PROXYHOST -DproxyPort=PROXYPORT