URI messageBoxURL = null; // This one can be null;
String trustedcerts = System.getProperty("trustedcerts");
String certskey = System.getProperty("certskey");
PuretlsInvoker secureInvoker;
if (userCred) {
// Using user credential
secureInvoker = new GsiInvoker(proxy, CertUtil
.loadCertificates(trustedcerts));
} else {
// Using service certificate.
secureInvoker = new PuretlsInvoker(certskey, "", trustedcerts);
}
LEADWorkflowInvoker workflowInvoker = new LEADWorkflowInvoker(wsdl,
leadContext, messageBoxURL, secureInvoker);
assertNotNull(workflowInvoker);
}