Exemple #1
0
 static void GetCollectionsLeaseInfo(string prop, string url)
 {
     YardiWebRef.ItfCollections s = new YardiWebRef.ItfCollections();
     //s.CookieContainer = new System.Net.CookieContainer();
     //ServicePointManager.CertificatePolicy = new CertificateValidation();
     s.Url = url;      // "https://www.iyardiasp.com/8223thirddev/Webservices/itfcollections.asmx";
     string lic = GetLicense2("V100055004.lic");
     XmlNode XmlNodeResponse;
     XmlNodeResponse = s.Get_CollectionsLeaseInfo(
         "rentrecoveryws",
         "55004",
         "aspdb04",
         "afqoml_live",
         "SQL Server",
         "Rent Recovery Solutions",
         lic,
         prop
        );
     XElement xE2 = XElement.Parse(XmlNodeResponse.OuterXml);
     xE2.Save(prop + "_" + DateTime.Now.ToString("MMddyyyy_hhmm") + ".xml");
     Console.WriteLine(xE2);
 }