private void Button1_Click(object sender, EventArgs e) { WCreatedServiceService wService = new WCreatedServiceService(); string voltou = wService.ping("Luan Castro Alves"); MessageBox.Show("Voltou " + voltou); }
private void Button2_Click(object sender, EventArgs e) { WCreatedServiceService wService = new WCreatedServiceService(); carro[] carros = wService.getMeusCarro(); foreach (carro carroatual in carros) { MessageBox.Show("Voltou um " + carroatual.nome + " da cor " + carroatual.cor); } }