public class TestScheduleProviderWsImpl extends CppWebServiceServerCall implements TestScheduleProvider {
private static String SERVICE_NAME = "konga_project_administration"; //$NON-NLS-1$
private String userName, password;
private ProjectAdministration getProjectAdministration(ServerCallback callback) throws IntegrationServerException {
ProjectAdministrationServiceLocator locator = new ProjectAdministrationServiceLocator();
try {
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
return null;
}
userName = getConfiguration().getUserName();
password = getConfiguration().getPassword();
locator.setkonga_project_administrationEndpointAddress(sb.toString());
return locator.getkonga_project_administration();
} catch (ServiceException e) {
throw new IntegrationServerException("Failed to call web service: " + e.getMessage(), e); //$NON-NLS-1$
}
}