public userServices.QueryType setQuery(userServices.AutenticazioneType auth, String progr, String progrRic, String minimal) { userServices.QueryType q = new userServices.QueryType(); q.Autenticazione = auth; q.ProgressivoInvio = progr; if (progrRic != null) { q.ProgressivoRicezione = progrRic; } if (minimal != null) { try { bool min = Boolean.Parse(minimal); q.MinimalSpecified = true; q.Minimal = min; } catch (Exception e) { Console.WriteLine("Booleano non riconosciuto." + e); throw; } } return(q); }
public userServices.FileType download(userServices.QueryType query) { Console.WriteLine("Download"); userServices.FileType xml; try { xml = srv.Download(query); } catch (Exception e) { Console.WriteLine("Exception:" + e); throw; } return(xml); }