Exemplo n.º 1
0
        private void callEcho_Click(object sender, System.EventArgs e)
        {
            try {
                localhost.simpleService myWebSvc =
                    new localhost.simpleService();

                this.soapReturnEcho.Text =
                    myWebSvc.echo(this.enterText.Text);
            } catch (Exception ex) {
                // error handling goes here...
            }
        }
Exemplo n.º 2
0
        private void callGetCounterInfo_Click(
            object sender, System.EventArgs e)
        {
            try {
                localhost.simpleService myWebSvc =
                    new localhost.simpleService();

                this.soapReturnGetCounterInfo.Text =
                    myWebSvc.getCounterInfo(
                        this.categoryName.Text,
                        this.counterName.Text,
                        this.instanceName.Text).RawValue.ToString();
            } catch (Exception ex) {
                // error handling goes here...
            }
        }