示例#1
0
文件: Form1.cs 项目: ssickles/archive
 byte[] GetFile( string fileName )
 {
     FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
     byte[] result = proxy.GetFile( fileName );
     proxy.Close();
     return result;
 }
示例#2
0
文件: Form1.cs 项目: ssickles/archive
 byte[] GetFile( string fileName )
 {
     FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
     proxy.ClientCredentials.Windows.AllowNtlm = true;
     byte[] result = proxy.GetFile( fileName );
     proxy.Close();
     return result;
 }
示例#3
0
文件: Form1.cs 项目: ssickles/archive
        //byte[] GetFile( string fileName )
        //{
        //    FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
        //    proxy.ClientCredentials.Windows.AllowNtlm = true;
        //    byte[] result = proxy.GetFile( fileName );
        //    proxy.Close();
        //    return result;
        //}

        private void button1_Click( object sender, EventArgs e )
        {
            FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
            textBox2.Text =   proxy.SayHello( textBox1.Text );
            proxy.Close();
        }