}
private org.jitterbit.integration.server.implementation.webservice.interchange.ldap.client.LdapInfoProvider getProvider(
ServerCallback callback) throws IntegrationServerException {
try {
LdapInfoProviderServiceLocator locator = new LdapInfoProviderServiceLocator();
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
// The callback has already been notified, so we can just return here.
return null;
}
userName = getConfiguration().getUserName();
password = getConfiguration().getPassword();
locator.setkonga_ldap_infoproviderEndpointAddress(sb.toString());
return locator.getkonga_ldap_infoprovider();
} catch (ServiceException ex) {
throw new IntegrationServerException("Failed to call web service: " + ex.getMessage(), ex);
}
}