You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by is...@apache.org on 2009/12/14 10:45:09 UTC

svn commit: r890251 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Author: isurues
Date: Mon Dec 14 09:45:09 2009
New Revision: 890251

URL: http://svn.apache.org/viewvc?rev=890251&view=rev
Log:
When setEndpointsToAllUsedBindings method is used, all existing endpoints are removed and new ones are created. Therefore we have to set the default endpoint to a newly created endpoint name

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java?rev=890251&r1=890250&r2=890251&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/deployment/util/Utils.java Mon Dec 14 09:45:09 2009
@@ -1109,6 +1109,8 @@
                 axisEndpoint.setTransportInDescription(transportIn);
                 axisEndpoint.setParent(axisService);
                 axisService.addEndpoint(axisEndpoint.getName(), axisEndpoint);
+                //set a valid endpoint name as the default endpoint of the service
+                axisService.setEndpointName(axisEndpoint.getName());
             }
         }
     }