private String user = "";
private String password = "";
public org.jitterbit.integration.server.implementation.webservice.admin.client.Admin getAdmin(ServerCallback callback) throws IntegrationServerException {
AdminServiceLocator locator = new AdminServiceLocator();
try {
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
return null;
}
user = getConfiguration().getUserName();
password = getConfiguration().getPassword();
locator.setadminEndpointAddress(sb.toString());
return locator.getadmin();
} catch (ServiceException e) {
throw new IntegrationServerException("Failed to call web service: " + e.getMessage(), e);
}
}