Exemplo n.º 1
0
        private void Form1_Shown(object sender, EventArgs e)
        {
            IMyService service = ServiceHelper.ResolveBasicHttpService <IMyService>("http://localhost:8080/service1");

            textBox1.Text = service.GetData(123);
            int i = 0;

            do
            {
                textBox1.Text += "\r\n" + service.GetDataUsingDataContract(new CompositeType()
                {
                    StringValue = "Hello, world!" + i
                }).StringValue;
            } while (i++ < 100);
        }