private void button1_Click(object sender, RoutedEventArgs e) { try { ServiceReference1.WebService1SoapClient service = new ServiceReference1.WebService1SoapClient(); service.GetLocationsCompleted += new EventHandler<ServiceReference1.GetLocationsCompletedEventArgs>(service_GetDateCompleted); service.GetLocationsAsync(); } catch (Exception ex) {MessageBox.Show(ex.Message);} }