When developer wants to connect Salesforce through its API from behind a proxy, how to set the proxy? It confused many people. Salesforce Apex API document does not mention this.
After investigation, I found Salesforce API used axis2 to connect server, so set proxy with axis2 API will be ok. See the following code