Exemple #1
0
 byte[] GetFile( string fileName )
 {
     FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
     byte[] result = proxy.GetFile( fileName );
     proxy.Close();
     return result;
 }
Exemple #2
0
 byte[] GetFile( string fileName )
 {
     FileService.FileServiceProxy proxy = new FileService.FileServiceProxy();
     proxy.ClientCredentials.Windows.AllowNtlm = true;
     byte[] result = proxy.GetFile( fileName );
     proxy.Close();
     return result;
 }
Exemple #3
0
        //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();
        }