use of org.jboss.as.test.xts.wsba.participantcompletion.service.BAParticipantCompletion in project wildfly by wildfly.
the class BAParticipantCompletionClient method newInstance.
public static BAParticipantCompletion newInstance(String serviceUrl, String serviceNamespaceName) throws Exception {
URL wsdlLocation = new URL("http://" + NODE0_ADDR + ":" + NODE0_PORT + "/" + BAParticipantCompletionTestCase.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);
BAParticipantCompletion client = service.getPort(portName, BAParticipantCompletion.class);
return client;
}
Aggregations