Permalink
Browse files

Prepare for Axis2 1.7+ / HttpClient 4.2+.

  • Loading branch information...
1 parent c7382cf commit dc6bdf5f7b9074135c3a4f1d0bb832e1a6d0424b @ceefour ceefour committed Jul 8, 2012
Showing with 14 additions and 1 deletion.
  1. +11 −1 pom.xml
  2. +3 −0 src/main/java/com/google/code/magja/soap/MagentoSoapClient.java
View
12 pom.xml
@@ -233,7 +233,17 @@
<artifactId>axis2-kernel</artifactId>
<version>${axis2.version}</version>
</dependency>
-
+<!-- <dependency> -->
+<!-- <groupId>org.apache.httpcomponents</groupId> -->
+<!-- <artifactId>httpclient</artifactId> -->
+<!-- <version>4.2.1</version> -->
+<!-- </dependency> -->
+<!-- <dependency> -->
+<!-- <groupId>org.apache.httpcomponents</groupId> -->
+<!-- <artifactId>httpcore</artifactId> -->
+<!-- <version>4.2.1</version> -->
+<!-- </dependency> -->
+
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
@@ -254,6 +254,9 @@ protected void login() throws AxisFault {
// http://amilachinthaka.blogspot.com/2009/05/improving-axis2-client-http-transport.html
MultiThreadedHttpConnectionManager httpConnectionManager = new MultiThreadedHttpConnectionManager();
HttpClient httpClient = new HttpClient(httpConnectionManager);
+ // prepare for Axis2 1.7+ / HttpClient 4.2+
+// ClientConnectionManager httpConnectionManager = new PoolingClientConnectionManager();
+// HttpClient httpClient = new DefaultHttpClient(httpConnectionManager);
connectOptions.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
Constants.VALUE_TRUE);
connectOptions

0 comments on commit dc6bdf5

Please sign in to comment.