This is an automated email from the ASF dual-hosted git repository. billblough pushed a commit to branch 1_7 in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git
commit 74d2662e7659fa1ce5bfe6cefa7942fcb326f715 Author: Andreas Veithen <veit...@apache.org> AuthorDate: Sun Jan 6 17:14:46 2019 +0000 Merge r1780733 to the 1.7 branch. --- .../main/java/org/apache/axis2/testutils/ClientHelper.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/testutils/src/main/java/org/apache/axis2/testutils/ClientHelper.java b/modules/testutils/src/main/java/org/apache/axis2/testutils/ClientHelper.java index ba64885..b143528 100644 --- a/modules/testutils/src/main/java/org/apache/axis2/testutils/ClientHelper.java +++ b/modules/testutils/src/main/java/org/apache/axis2/testutils/ClientHelper.java @@ -18,6 +18,10 @@ */ package org.apache.axis2.testutils; +import java.net.URL; + +import javax.xml.namespace.QName; + import org.apache.axis2.AxisFault; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.client.Stub; @@ -57,6 +61,13 @@ public class ClientHelper extends ExternalResource { return serviceClient; } + public final ServiceClient createServiceClient(String serviceName, QName wsdlServiceName, String portName) throws Exception { + ServiceClient serviceClient = new ServiceClient(configurationContext, + new URL(server.getEndpoint(serviceName) + "?wsdl"), wsdlServiceName, portName); + configureServiceClient(serviceClient); + return serviceClient; + } + public final <T extends Stub> T createStub(Class<T> type, String serviceName) throws Exception { T stub = type .getConstructor(ConfigurationContext.class, String.class)