[jboss-svn-commits] JBL Code SVN: r38387 - labs/jbossesb/branches/JBESB_4_11_CP2/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jul 25 16:28:16 EDT 2013


Author: tcunning
Date: 2013-07-25 16:28:15 -0400 (Thu, 25 Jul 2013)
New Revision: 38387

Modified:
   labs/jbossesb/branches/JBESB_4_11_CP2/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java
Log:
JBESB-2265
Adding username and password to the endpoint seem to solve the problems
with BASIC auth / WISE SOAPClient.


Modified: labs/jbossesb/branches/JBESB_4_11_CP2/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_11_CP2/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java	2013-07-24 17:00:39 UTC (rev 38386)
+++ labs/jbossesb/branches/JBESB_4_11_CP2/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java	2013-07-25 20:28:15 UTC (rev 38387)
@@ -345,11 +345,21 @@
         Map<String, WSEndpoint> endpointsMap = getEndpoints(client);
         
         WSEndpoint endpoint;
+        
         if (endPointName != null) {
             endpoint = endpointsMap.get(endPointName);
         } else {
             endpoint = endpointsMap.values().iterator().next();
         }
+        
+        // Set the username & password
+        if (this.username != null) {
+            endpoint.setUsername(this.username);
+        }
+        if (this.password != null) { 
+            endpoint.setPassword(this.password);
+        }
+        
         return endpoint;
     }
 



More information about the jboss-svn-commits mailing list