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 sa...@apache.org on 2008/03/13 07:37:40 UTC

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

Author: sanka
Date: Wed Mar 12 23:37:39 2008
New Revision: 636645

URL: http://svn.apache.org/viewvc?rev=636645&view=rev
Log:
Fixed a minor error in addEndpointsToService(..) method

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=636645&r1=636644&r2=636645&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 Wed Mar 12 23:37:39 2008
@@ -879,19 +879,20 @@
 			AxisConfiguration axisConfiguration = axisService
 					.getAxisConfiguration();
 			if (axisConfiguration != null) {
-				transportInValues = axisConfiguration.getTransportsIn()
-						.values().iterator();
+				ArrayList transports = new ArrayList();
+				for (Iterator iterator = axisConfiguration.getTransportsIn().values().iterator(); iterator.hasNext(); ){
+					TransportInDescription transportInDescription = (TransportInDescription) iterator.next();
+					transports.add(transportInDescription.getName());
+				}
+				transportInValues = transports.iterator(); 
 			}
 		} else {
 			transportInValues = axisService.getExposedTransports().iterator();
 		}
 
 		if (transportInValues != null) {
-			for (; transportInValues.hasNext();) {
-				TransportInDescription transportInDesc = (TransportInDescription) transportInValues
-						.next();
-
-				String transportName = transportInDesc.getName();
+			for (; transportInValues.hasNext();) {			
+				String transportName = (String) transportInValues.next();
 				String protocol = transportName.substring(0, 1).toUpperCase()
 						+ transportName.substring(1, transportName.length())
 								.toLowerCase();
@@ -904,8 +905,7 @@
 				AxisEndpoint httpSoap11Endpoint = new AxisEndpoint();
 				httpSoap11Endpoint.setName(soap11EndpointName);
 				httpSoap11Endpoint.setParent(axisService);
-				httpSoap11Endpoint.setTransportInDescription(transportInDesc
-						.getName());
+				httpSoap11Endpoint.setTransportInDescription(transportName);
 				populateSoap11Endpoint(axisService, httpSoap11Endpoint);
 				axisService.addEndpoint(httpSoap11Endpoint.getName(),
 						httpSoap11Endpoint);
@@ -920,8 +920,7 @@
 				AxisEndpoint httpSoap12Endpoint = new AxisEndpoint();
 				httpSoap12Endpoint.setName(soap12EndpointName);
 				httpSoap12Endpoint.setParent(axisService);
-				httpSoap12Endpoint.setTransportInDescription(transportInDesc
-						.getName());
+				httpSoap12Endpoint.setTransportInDescription(transportName);
 				populateSoap12Endpoint(axisService, httpSoap12Endpoint);
 				axisService.addEndpoint(httpSoap12Endpoint.getName(),
 						httpSoap12Endpoint);
@@ -935,8 +934,7 @@
 					AxisEndpoint httpEndpoint = new AxisEndpoint();
 					httpEndpoint.setName(httpEndpointName);
 					httpEndpoint.setParent(axisService);
-					httpEndpoint.setTransportInDescription(transportInDesc
-							.getName());
+					httpEndpoint.setTransportInDescription(transportName);
 					populateHttpEndpoint(axisService, httpEndpoint);
 					axisService.addEndpoint(httpEndpoint.getName(),
 							httpEndpoint);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org