axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r804860 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Date Mon, 17 Aug 2009 04:37:13 GMT
Author: amilas
Date: Mon Aug 17 04:37:13 2009
New Revision: 804860

URL: http://svn.apache.org/viewvc?rev=804860&view=rev
Log:
if the axisService already exists in the axisconfiguration we need to use that inside the
service client as well.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java?rev=804860&r1=804859&r2=804860&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Mon Aug 17 04:37:13 2009
@@ -167,20 +167,22 @@
         if (axisService == null) {
             axisService = createAnonymousService();
         }
-        this.axisService = axisService;
+
         // axis service is removed from the configuration context
         // only if user has not added it to configuration context.
         if (axisConfig.getService(axisService.getName()) == null) {
             axisService.setClientSide(true);
             axisConfig.addService(axisService);
             removeAxisService = true;
+            this.axisService = axisService;
         } else {
             axisService.setClientSide(true);
             removeAxisService = false;
+            this.axisService = axisConfig.getService(axisService.getName());
         }
-        AxisServiceGroup axisServiceGroup = axisService.getAxisServiceGroup();
+        AxisServiceGroup axisServiceGroup = this.axisService.getAxisServiceGroup();
         ServiceGroupContext sgc = configContext.createServiceGroupContext(axisServiceGroup);
-        serviceContext = sgc.getServiceContext(axisService);
+        serviceContext = sgc.getServiceContext(this.axisService);
     }
 
 



Mime
View raw message