Author: sagara
Date: Mon Apr 23 06:50:35 2012
New Revision: 1329084

URL: http://svn.apache.org/viewvc?rev=1329084&view=rev
Log:
Fixed - AXIS2-5298 , added a logic to cover the mentioned issue. 

Modified:
    
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java

Modified: 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
URL: 
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java?rev=1329084&r1=1329083&r2=1329084&view=diff
==============================================================================
--- 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
 (original)
+++ 
axis/axis2/java/core/trunk/modules/jaxws/src/org/apache/axis2/jaxws/addressing/factory/impl/Axis2EndpointReferenceFactoryImpl.java
 Mon Apr 23 06:50:35 2012
@@ -126,6 +126,11 @@ public class Axis2EndpointReferenceFacto
                     // just to keep it clean:
                     if (axis2EPR.getAddress().endsWith("/") && 
wsdlDocumentLocation.startsWith("/")) {
                         wsdlDocumentLocation = axis2EPR.getAddress() + 
wsdlDocumentLocation.substring(1);
+                        
+                    } else if (axis2EPR.getAddress().endsWith("/")){
+                        String eprAddress = axis2EPR.getAddress();
+                        wsdlDocumentLocation = eprAddress.substring(0, 
eprAddress.length() - 1)  + wsdlDocumentLocation;
+                        
                     } else {
                         wsdlDocumentLocation = axis2EPR.getAddress() + 
wsdlDocumentLocation;
                     }


Reply via email to