use of org.jboss.as.test.xts.wsba.coordinatorcompletion.service.BACoordinatorCompletion in project wildfly by wildfly.
the class BACoordinatorCompletionClient method newInstance.
public static BACoordinatorCompletion newInstance(String serviceUrl, String serviceNamespaceName) throws Exception {
URL wsdlLocation = new URL("http://" + NODE0_ADDR + ":" + NODE0_PORT + "/" + BACoordinatorCompletionTestCase.ARCHIVE_NAME + "/" + serviceUrl + "?wsdl");
log.trace("wsdlLocation for service: " + wsdlLocation);
QName serviceName = new QName(TARGET_NAMESPACE, serviceNamespaceName);
QName portName = new QName(TARGET_NAMESPACE, DEFAULT_PORT_NAME);
Service service = Service.create(wsdlLocation, serviceName);
BACoordinatorCompletion client = service.getPort(portName, BACoordinatorCompletion.class);
return client;
}
Aggregations