Ejemplo n.º 1
0
        public static DataSet GetDSForPrcoce(string storedProcName, object[] parameters, string tableName)
        {
            // System.ServiceModel.Dispatcher.DispatchRuntime.AutomaticInputSessionShutdown = false;

            //ChatCallBack callBack = new ChatCallBack();
            //InstanceContext instance = new InstanceContext(callBack);
            ServiceReference1.FileTransportServiceClient ft = new ServiceReference1.FileTransportServiceClient();
            try
            {
                byte[] da = ft.GetDSForPrcoce(storedProcName, parameters, tableName);
                ft.Close();
                return(Byte2DS(da));
            }
            catch (Exception ex)
            {
                DataSet ds = new DataSet();
                ds.Tables.Add();
                return(ds);
            }
            finally
            {
                ft.Close();
            }
        }