// SERVICE REFERENCE-SPECIFIC CODE MyService.FUNCTIONPortClient soapClient = new MyService.FUNCTIONPortClient (); result = soapClient.test_query("test from c# ! "); try { this.output.Text = "Querying the Web Service... answer: " + result; } catch (Exception error) { this.output.Text = error.Message; }