Sending SOAP Requests through an HTTP Proxy

To send all outbound SOAP requests from your client through on port 3128, set the Java system properties http.proxyHost and http.proxyPort from your client code:

  System.setProperty("http.proxyHost", ""); 
  System.setProperty("http.proxyPort", "3128"); 

You can set these system properties without modifying your client code by using the Java -D command line option when you start your Java application.

  >java -Dhttp.proxyPort=3128 myPackage.MyApp

Found on

As another alternative please read This allows you to supply a class

that AXIS will use to provide client properties.

If you need the ability to reset proxy settings during runtime, i.e. without stopping/starting the JVM (e.g. after the proxy settings dialog of your application was edited and confirmed by a user), it is sufficient to add a public static method to TransportClientPropertiesFactory, that is just clearing its TransportClientProperties-cache. If it is possible to override the default TransportClientPropertiesFactory, by providing your custom factory

this would be the preferable approach.

Further information about the built-in proxy options for Java2 1.4 including authentication and SOCKS can be at

FrontPage/Axis/AxisProxy (last edited 2009-09-20 22:48:57 by localhost)