Usually to configure proxy you need to define the following system properties, when you start a JVM:
But unfortunately it doesn't always work. Actually it did work only for Axis.
So here are the solutions that worked:
In Axis2 it's possible to add the following code to the client that will copy proxy settings from system properties:
In JAX-WS you may set the proxy in the code:
Recommended Reading1. Effective Java (2nd Edition)
2. Java™ Puzzlers: Traps, Pitfalls, and Corner Cases