* in which case cancelled has already been called on the callback.
* @throws ServiceException
*/
private CheckoutInterchangeData getCheckoutInterchangeData(ServerCallback callback) throws ServiceException {
// Configure the web service.
CheckoutInterchangeDataServiceLocator locator = new CheckoutInterchangeDataServiceLocator();
StringBuilder url = new StringBuilder();
if (!wsConfiguration.configureWebservice(locator, SERVICE_NAME, url, callback)) {
logger.info("Aborted the download process since login failed or was canceled");
return null;
}
user = wsConfiguration.getUserName();
password = wsConfiguration.getPassword();
serverName = wsConfiguration.getServerName();
logger.info("Connected as " + user + "@" + serverName + ". URL = " + url);
locator.setkonga_checkout_interchange_dataEndpointAddress(url.toString());
return locator.getkonga_checkout_interchange_data();
}