Search in sources :

Example 1 with ParamsListMObjects

use of com.marketo.mktows.ParamsListMObjects in project components by Talend.

the class MarketoSOAPClient method connect.

public MarketoSOAPClient connect() throws MarketoException {
    try {
        port = getMktowsApiSoapPort();
        LOG.debug("Marketo SOAP Client :: port.");
        header = getAuthentificationHeader();
        LOG.debug("Marketo SOAP Client initialization :: AuthHeader.");
        // bug/TDI-38439_MarketoWizardConnection : make a dummy call to check auth and not just URL.
        getPort().listMObjects(new ParamsListMObjects(), header);
    } catch (MalformedURLException | NoSuchAlgorithmException | InvalidKeyException | WebServiceException e) {
        throw new MarketoException(SOAP, e.getMessage());
    }
    return this;
}
Also used : MalformedURLException(java.net.MalformedURLException) WebServiceException(javax.xml.ws.WebServiceException) MarketoException(org.talend.components.marketo.runtime.client.type.MarketoException) NoSuchAlgorithmException(java.security.NoSuchAlgorithmException) ParamsListMObjects(com.marketo.mktows.ParamsListMObjects) InvalidKeyException(java.security.InvalidKeyException)

Aggregations

ParamsListMObjects (com.marketo.mktows.ParamsListMObjects)1 MalformedURLException (java.net.MalformedURLException)1 InvalidKeyException (java.security.InvalidKeyException)1 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 WebServiceException (javax.xml.ws.WebServiceException)1 MarketoException (org.talend.components.marketo.runtime.client.type.MarketoException)1