private async void button2_Click(object sender, RoutedEventArgs e) { var proxy2 = new Service2Client(); var game = await proxy2.GetDataUsingDataContractAsync(new Game() { BoolValue = true, StringValue = "Jhon" }); MessageBox.Show($"{game.StringValue}, {game.BoolValue}"); }