Service1Client s = new Service1Client(); private void button1_Click(object sender, EventArgs e) { try { MessageBox.Show("Result: " + s.GetError()); } catch (FaultException fex) { MessageBox.Show("FaultException: " + fex.Message); } catch (CommunicationException cex) { MessageBox.Show("CommunicationException: " + cex.Message); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
application/json
text/html
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)