Search in sources :

Example 41 with TMDMService

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);
    }
}
Also used : WSPing(com.amalto.workbench.webservices.WSPing) TMDMService(com.amalto.workbench.webservices.TMDMService) URL(java.net.URL) XtentisException(com.amalto.workbench.utils.XtentisException)

Aggregations

TMDMService (com.amalto.workbench.webservices.TMDMService)41 XtentisException (com.amalto.workbench.utils.XtentisException)18 WSDataClusterPK (com.amalto.workbench.webservices.WSDataClusterPK)10 URL (java.net.URL)10 WebServiceException (javax.xml.ws.WebServiceException)9 WSDataModelPK (com.amalto.workbench.webservices.WSDataModelPK)8 TreeObject (com.amalto.workbench.models.TreeObject)7 MalformedURLException (java.net.MalformedURLException)7 WSDataModel (com.amalto.workbench.webservices.WSDataModel)6 WSGetDataModel (com.amalto.workbench.webservices.WSGetDataModel)6 WSView (com.amalto.workbench.webservices.WSView)6 ParseException (java.text.ParseException)6 IRepositoryViewObject (org.talend.core.model.repository.IRepositoryViewObject)6 WSDataCluster (com.amalto.workbench.webservices.WSDataCluster)5 WSGetDataCluster (com.amalto.workbench.webservices.WSGetDataCluster)5 WSGetView (com.amalto.workbench.webservices.WSGetView)5 WSPing (com.amalto.workbench.webservices.WSPing)5 Matcher (java.util.regex.Matcher)5 WSDigest (com.amalto.workbench.webservices.WSDigest)4 WSRoutingEngineV2Action (com.amalto.workbench.webservices.WSRoutingEngineV2Action)4