Exemple #1
0
 public userServices.PasvQueryType setPasvQuery(userServices.AutenticazioneType auth, String idSdi, String pos, String minimal, bool unwrap)
 {
     Console.WriteLine("Setting up Query");
     userServices.PasvQueryType q = new userServices.PasvQueryType();
     q.Autenticazione    = auth;
     q.IdentificativoSdI = idSdi;
     q.Unwrap            = unwrap;
     try
     {
         if (minimal != null)
         {
             bool min = Boolean.Parse(minimal);
             q.MinimalSpecified = true;
             q.Minimal          = min;
         }
         if (pos != null)
         {
             UInt16 position = UInt16.Parse(pos);
             q.PosizioneSpecified = true;
             q.Posizione          = position;
         }
     }
     catch (Exception e)
     {
         Console.WriteLine("Booleano non riconosciuto." + e);
         throw;
     }
     return(q);
 }
Exemple #2
0
 public userServices.FileType downloadPassive(userServices.PasvQueryType query)
 {
     Console.WriteLine("Download Passive");
     userServices.FileType xml;
     try
     {
         xml = srv.PasvDownload(query);
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception:" + e);
         throw;
     }
     return(xml);
 }