Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.Service1SoapClient servico = new ServiceReference1.Service1SoapClient();

            lblResultado.Text = servico.TiraAcento(tbxTexto.Text);

            servico.Close();
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ServiceReference1.Service1SoapClient servico = new ServiceReference1.Service1SoapClient();

            DataSet tb  = new DataSet();
            XmlNode doc = servico.ListaProdutos1("", "");

            XmlReader rd = new XmlNodeReader(doc);

            tb.ReadXml(rd);

            //lblResultado.Text = ;
            dataGridView1.DataSource = tb.Tables[0];

            servico.Close();
        }