Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();
            ServiceReference1.WebService1SoapClient client = new ServiceReference1.WebService1SoapClient();
            string helloString = client.HelloWorld();

            textBlock.Text = helloString;
        }
Ejemplo n.º 2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            double value1 = Convert.ToDouble(textBox.Text);
            double value2 = Convert.ToDouble(textBox1.Text);

            ServiceReference1.WebService1SoapClient client = new ServiceReference1.WebService1SoapClient();
            double result = client.addNumbers(value1, value2);

            textBlock.Text = "Result: " + result;
        }