Search in sources :

Example 1 with BACoordinatorCompletion

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;
}
Also used : QName(javax.xml.namespace.QName) BACoordinatorCompletion(org.jboss.as.test.xts.wsba.coordinatorcompletion.service.BACoordinatorCompletion) Service(javax.xml.ws.Service) URL(java.net.URL)

Aggregations

URL (java.net.URL)1 QName (javax.xml.namespace.QName)1 Service (javax.xml.ws.Service)1 BACoordinatorCompletion (org.jboss.as.test.xts.wsba.coordinatorcompletion.service.BACoordinatorCompletion)1