/*
* Send the request bean and the file as a multipart request.
*/
//2. send request via ServerService
final WebserviceResponse response;
try {
response = serverService.makeRundeckRequest(RUNDECK_API_JOBS_UPLOAD, params, input, null, "xmlBatch");
} catch (MalformedURLException e) {
throw new CentralDispatcherServerRequestException("Failed to make request", e);
}
validateResponse(response);
////////////////////
//parse result list of queued items, return the collection of QueuedItems
///////////////////
final Document result = response.getResultDoc();
final int succeeded;
final int failed;
final int skipped;
Node node = result.selectSingleNode("/result/succeeded/@count");