private static void testItemList() { string aspKey = "micpg"; string customerKey = "kupac"; string password = "******"; string cookie = "39983830859dJFaogrSxpgIcfvfy1T"; System.IO.FileInfo f = new FileInfo(String.Format(@"C:\Temp\itemList_{0}.xml", DateTime.Now.ToString("ddMMyyyy_HH_mm"))); using (StreamWriter sw = f.AppendText()) { try { WSContext ctx = new WSContext(aspKey, customerKey, password, @"http://www.microline.hr/WebServices/MOL.asmx", @"C:\Temp", cookie); WSClient client = new WSClient(ctx); var report = client.GetItemsFiltered(null, "sam", "itemsFilteredSam"); sw.WriteLine(report); } catch (Exception ex) { sw.WriteLine(ex.Message); sw.WriteLine(ex.StackTrace); if (ex.InnerException != null) { sw.WriteLine(ex.InnerException.Message); sw.WriteLine(ex.InnerException.StackTrace); if (ex.InnerException.InnerException != null) { sw.WriteLine(ex.InnerException.InnerException.Message); sw.WriteLine(ex.InnerException.InnerException.StackTrace); } } } } }