public static bool atfGenel(string _koliNo) { WS_Islem.ZktWmStAtfHeader atfHeader = new KoctasWM_Project.WS_Islem.ZktWmStAtfHeader(); try { WS_Islem.ZKT_WM_WS_ISLEMService srv = new KoctasWM_Project.WS_Islem.ZKT_WM_WS_ISLEMService(); WS_Islem.ZKtWmWsAtfGenel chk = new KoctasWM_Project.WS_Islem.ZKtWmWsAtfGenel(); WS_Islem.ZKtWmWsAtfGenelResponse resp = new KoctasWM_Project.WS_Islem.ZKtWmWsAtfGenelResponse(); chk.IvKoliNo = _koliNo; //Birden fazla koliNo gecirilmeli srv.Credentials = GlobalData.globalCr; srv.Url = Utility.getWsUrlForWM("zkt_wm_ws_islem"); resp = srv.ZKtWmWsAtfGenel(chk); atfHeader = resp.EsAtfHeader; if (resp.EtResponse[0].Msgty.ToString().ToUpper() == "S") { //return atfHeader; return(true); } else { MessageBox.Show(resp.EtResponse[0].Message, "HATA"); return(false); } } catch (Exception ex) { MessageBox.Show(ex.Message, "HATA"); } //return atfHeader; return(false); }