Blog Archive for June 18, 2013

SOAP with Apache HttpClient 4

June 18, 2013

Here's some example code for making a SOAP call with Apache's HttpClient 4.

HttpClient lHttpClient = new DefaultHttpClient();

// Setup proxy server to call through
HttpHost lProxy = new HttpHost("hostname", 1234);
lHttpClient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, lProxy);

 // Setup …