Configuring the proxy serverYou need to launch JMeter with one or more of the following options:
-H [proxy server or IP address]Examples:
-P [proxy server port]
-u [username for the proxy authentication]
-a [password for the proxy authentication]
- jmeter.bat -H 192.168.10.1 -P 8012
- jmeter.bat -H 192.168.10.1 -P 8012 -u my_user_name -a my_password
Note: This proxy mechanism is different from the built-in Http proxy server. The http proxy server can be used to record http browser sessions and requires you to modify set the browser proxy settings.
Testing the proxy server settingsThere are several ways to check if the proxy server settings are correct. I prefer to connect to a public webservice as it is very easy to do so, e.g. the one from amazon: http://soap.amazon.com/schemas3/AmazonWebServices.wsdl. Create a WebService(SOAP) request, fill out the WSDL url and click the "Load WSDL" button. The "Web Methods" dropdown gets filled with the available webservice methods. Congratulations, you correctly set the proxy server settings as you managed to reach the public webservice. Download the JMeter webservice request test file here.
You don't get the the list of methods, instead you get an exception message? Check if you get one of these messages:
Error1: The WSDL was not valid, please double check the url. org.apache.jmeter.protocol.http.util.WSDLException: Connection timed out: connect.
- The proxy server settings are probably incorrect, double check the proxy server and proxy server port
- The username and password are probably incorrect, double check the correctness of these data
- The webservice is probably not up, or you made a typo like I did in the url above: amazo instead of amazon. Paste the url in a browser and check if you get an xml-like file describing the webservice.
Did you get get an other message? Leave a comment and I'll come back to you.