private DataTable GetPackingRecRetrieve(string sysid) { wsINP.IwsINPClient client = new wsINP.IwsINPClient(); DataTable dt = null; try { List<MESParameterInfo> lstParams = new List<MESParameterInfo>() { new MESParameterInfo(){ParamName="shippingsysid",ParamValue=sysid} }; dt = client.GetPackingRecRetrieveRecords(baseForm.CurrentContextInfo, lstParams.ToArray<MESParameterInfo>()).Tables[0]; } catch (Exception ex) { throw ex; } finally { baseForm.CloseWCF(client); } return dt; }