You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2017/01/22 14:31:54 UTC

svn commit: r1779816 - /axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java

Author: veithen
Date: Sun Jan 22 14:31:54 2017
New Revision: 1779816

URL: http://svn.apache.org/viewvc?rev=1779816&view=rev
Log:
Always use localhost to contact the test Axis2 server.

Modified:
    axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java

Modified: axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java?rev=1779816&r1=1779815&r2=1779816&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java (original)
+++ axis/axis2/java/core/trunk/modules/testutils/src/main/java/org/apache/axis2/testutils/Axis2Server.java Sun Jan 22 14:31:54 2017
@@ -50,11 +50,11 @@ public class Axis2Server extends Externa
     }
 
     public String getEndpoint(String serviceName) throws AxisFault {
-        return getConfigurationContext().getAxisConfiguration().getService(serviceName).getEPRs()[0];
+        return getEndpointReference(serviceName).getAddress();
     }
 
     public EndpointReference getEndpointReference(String serviceName) throws AxisFault {
-        return new EndpointReference(getEndpoint(serviceName));
+        return server.getEPRForService(serviceName, "localhost");
     }
 
     @Override