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;
}
Aggregations