static void GetCollectionsLeaseInfo_iface(string prop, string url, string lic="") { try { yif = new YardiInterface.YardiInterface(url, lic); yif.User = "******"; yif.Pwd = "55004"; yif.Database = "aspdb04"; yif.Server = "afqoml_live"; yif.Platform = "SQL Server"; yif.EntityName = "Rent Recovery Solutions"; yif.YardiPropId = prop; //if (lic != "") // yif.LicenseFile = lic; XElement xE2 = yif.GetCollectionsLeaseInfo(prop); xE2.Save(prop + "_" + DateTime.Now.ToString("MMddyyyy_hhmm") + ".xml"); Console.WriteLine(xE2); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
private void InitializeYardiInterface(ListViewItem lvi) { string keyword = lvi.SubItems[0].Text; XElement el = ccfg.GetElementByAttrib(_cli, "client", "keyword", keyword); YardiInterface.YardiInterface iface = new YardiInterface.YardiInterface(ccfg.GetElement(el, "url").Value, "V100055004.lic"); iface.URL = ccfg.GetElement(el, "url").Value; iface.User = ccfg.GetElement(el, "user").Value; iface.Pwd = ccfg.GetElement(el, "password").Value; iface.Database = ccfg.GetElement(el, "database").Value; iface.Server = ccfg.GetElement(el, "server").Value; iface.Platform = ccfg.GetElement(el, "platform").Value; //iface.EntityName = "Rent Recovery Solutions"; iface.YardiPropId = ccfg.GetElement(el, "yardipropid").Value; ; XElement collData = iface.GetCollectionsLeaseInfo(iface.YardiPropId); }
private static void GetVersion(string url, string lic="") { yif = new YardiInterface.YardiInterface(url, lic);// "V100055004.lic"); string ver = yif.ClientVersion; Console.WriteLine(ver); }
static void Getproperties_Iface(string url, string lic="") { yif = new YardiInterface.YardiInterface(url, lic); yif.User = "******"; yif.Pwd = "55004"; yif.Database = "aspdb04"; yif.Server = "afqoml_live"; yif.Platform = "SQL Server"; yif.EntityName = "Rent Recovery Solutions"; if (lic != "") yif.LicenseFile = lic; XElement xE2 =yif.Getproperties(); //s.Url = "https://www.iyardiasp.com/8223thirddev/Webservices/itfcollections.asmx"; //string lic = GetLicense("V100055004.lic"); //XmlNode XmlNodeResponse; //XmlNodeResponse = s.GetPropertyConfigurations( // "rentrecoveryws", // "55004", // "aspdb04", // "afqoml_live", // "SQL Server", // "Rent Recovery Solutions", // lic // ); //XElement xE2 = XElement.Parse(XmlNodeResponse.OuterXml); Console.WriteLine(xE2); }