obj = service.getPort(arReqInfo.getInterface());
setSubject(subject);
return createConnectionProxy(obj, arReqInfo, subject);
} catch (WebServiceException wse) {
throw new ResourceAdapterInternalException("Failed to create proxy client for service "
+ crInfo, wse);
} finally {
// Thread.currentThread().setContextClassLoader(orig);
}
}
try {
Object obj = null;
Service service = Service.create(wsdlLocationUrl, serviceName);
if (arReqInfo.getPortQName() != null) {
obj = service.getPort(arReqInfo.getPortQName(), arReqInfo.getInterface());
} else {
obj = service.getPort(arReqInfo.getInterface());
}
setSubject(subject);
return createConnectionProxy(obj, arReqInfo, subject);
} catch (WebServiceException wse) {
throw new ResourceAdapterInternalException("Failed to getPort for " + crInfo, wse);
} finally {
Thread.currentThread().setContextClassLoader(orig);
}
}