/// <summary>追加処理</summary> async private void button7_Click(object sender, RoutedEventArgs e) { // 引数1:コンテキスト string context = "User1"; // 引数2:アクションタイプ string actionType = ((ComboBoxItem)this.ddlDap.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode1.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode2.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlExRollback.SelectedItem).Value; // Soap & Bean の個別WebメソッドのWeb参照 SbServiceReference.ServiceForSbSoapClient client = new SbServiceReference.ServiceForSbSoapClient(); // 非同期呼出しを行う SbServiceReference.InsertResponse response = await client.InsertAsync(context, actionType, this.textBox2.Text, this.textBox3.Text); if (response.Body.InsertResult != "") { // 例外発生時 WSErrorInfo wse = new WSErrorInfo(response.Body.InsertResult); this.labelMessage.Text = response.Body.InsertResult + " , " + response.Body.returnValue + " , " + wse.MessageID + " , " + wse.Message + " , " + wse.Information; } else { // 結果(正常系) this.labelMessage.Text = response.Body.returnValue + "件追加"; } }
/// <summary>追加処理</summary> private void button7_Click(object sender, RoutedEventArgs e) { // 引数1:コンテキスト string context = "User1"; // 引数2:アクションタイプ string actionType = ((ComboBoxItem)this.ddlDap.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode1.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode2.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlExRollback.SelectedItem).Value; // Soap & Bean の個別WebメソッドのWeb参照 SbServiceReference.ServiceForSbSoapClient client = new SbServiceReference.ServiceForSbSoapClient(); // 呼び出しが完了した場合のイベントハンドラを設定する。 client.InsertCompleted += new EventHandler <SbServiceReference.InsertCompletedEventArgs>(client_Insert_CallCompleted); // 非同期呼出しを行う(Silverlightは非同期呼び出しのみサポートする)。 client.InsertAsync(context, actionType, this.textBox2.Text, this.textBox3.Text); }
/// <summary>追加処理</summary> private void button7_Click(object sender, RoutedEventArgs e) { // 引数1:コンテキスト string context = "User1"; // 引数2:アクションタイプ string actionType = ((ComboBoxItem)this.ddlDap.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode1.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode2.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlExRollback.SelectedItem).Value; // Soap & Bean の個別WebメソッドのWeb参照 SbServiceReference.ServiceForSbSoapClient client = new SbServiceReference.ServiceForSbSoapClient(); // 呼び出しが完了した場合のイベントハンドラを設定する。 client.InsertCompleted += new EventHandler<SbServiceReference.InsertCompletedEventArgs>(client_Insert_CallCompleted); // 非同期呼出しを行う(Silverlightは非同期呼び出しのみサポートする)。 client.InsertAsync(context, actionType, this.textBox2.Text, this.textBox3.Text); }
/// <summary>追加処理</summary> async private void button7_Click(object sender, RoutedEventArgs e) { // 引数1:コンテキスト string context = "User1"; // 引数2:アクションタイプ string actionType = ((ComboBoxItem)this.ddlDap.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode1.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlMode2.SelectedItem).Value + "%" + ((ComboBoxItem)this.ddlExRollback.SelectedItem).Value; // Soap & Bean の個別WebメソッドのWeb参照 SbServiceReference.ServiceForSbSoapClient client = new SbServiceReference.ServiceForSbSoapClient(); // 非同期呼出しを行う SbServiceReference.InsertResponse response = await client.InsertAsync(context, actionType, this.textBox2.Text, this.textBox3.Text); if (response.Body.InsertResult != "") { // 例外発生時 WSErrorInfo wse = new WSErrorInfo(response.Body.InsertResult); this.labelMessage.Text = response.Body.InsertResult + " , " + response.Body.returnValue + " , " + wse.MessageID + " , " + wse.Message + " , " + wse.Information; } else { // 結果(正常系) this.labelMessage.Text = response.Body.returnValue + "件追加"; } }