Search in sources :

Example 1 with BAParticipantCompletion

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

Aggregations

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