private static String SERVICE_NAME = "konga_test_connection";
private String userName, password;
private TestConnection getTestConnection(ServerCallback callback) throws IntegrationServerException {
TestConnectionServiceLocator locator = new TestConnectionServiceLocator();
try {
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
return null;
}
userName = getConfiguration().getUserName();
password = getConfiguration().getPassword();
locator.setkonga_test_connectionEndpointAddress(sb.toString());
return locator.getkonga_test_connection();
} catch (ServiceException e) {
throw new IntegrationServerException("Failed to call web service: " + e.getMessage(), e);
}
}