use of com.amalto.workbench.webservices.TMDMService in project tmdm-studio-se by Talend.
the class ServerDefService method checkMDMConnection.
public static void checkMDMConnection(String endpointaddress, String username, String password) throws MalformedURLException, XtentisException {
try {
TMDMService port = Util.getMDMService(new URL(endpointaddress), username, password);
// $NON-NLS-1$
port.ping(new WSPing("ServerExplorer"));
} catch (javax.xml.ws.WebServiceException e) {
XtentisException xtentisException = Util.convertWebServiceException(e);
if (xtentisException != null) {
throw xtentisException;
}
log.error(e.getMessage(), e);
}
}
Aggregations