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 ke...@apache.org on 2008/07/27 18:10:28 UTC

svn commit: r680138 - /webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java

Author: keithc
Date: Sun Jul 27 09:10:28 2008
New Revision: 680138

URL: http://svn.apache.org/viewvc?rev=680138&view=rev
Log:
Fixing the endpoint url to be correct. There may be occations when the Listner takes control of how the EPR should look. So its best to add the trailing / after we get the EPR from the listener

Modified:
    webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java

Modified: webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java?rev=680138&r1=680137&r2=680138&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java (original)
+++ webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/description/AxisEndpoint.java Sun Jul 27 09:10:28 2008
@@ -189,12 +189,12 @@
 					String ip = HttpUtils.getIpAddress(axisConfiguration);
 					// we should pass [serviceName].[endpointName] instead of
 					// [endpointName]
-					String sDOTe = serviceName + "." + name + "/";
+					String sDOTe = serviceName + "." + name;
 					EndpointReference[] eprsForService = listener
 							.getEPRsForService(sDOTe, ip);
 					// we consider only the first address return by the listener
 					if (eprsForService != null && eprsForService.length > 0) {
-						return eprsForService[0].getAddress();
+						return eprsForService[0].getAddress()  + "/";
 					}
 				} catch (SocketException e) {
 					logger.warn(e.getMessage(), e);