private void CallWebService(string startDate, string endDate)
 {
     try
     {
         Kurs kurs = new Kurs();
         string result = kurs.GetExchangeRates(startDate, endDate);
         ParseResponse(result);
     }
     catch
     {
         displayErrorMessage(errorConnecting);
     }
     
 }
 public static String CallWebService(string startDate, string endDate)
 {
     string result;
     try
     {
         Kurs kurs = new Kurs();
         string response = kurs.GetExchangeRates(startDate, endDate);
         result = ParseResponse(response);
     }
     catch
     {
         result = System.Web.Configuration.WebConfigurationManager.AppSettings["errorConnecting"];
         logger.Error(result);
     }
     return result;
 }
コード例 #3
0
 private void CallWebService(string startDate, string endDate)
 {
     Kurs kurs = new Kurs();
     string result = kurs.GetExchangeRates(startDate, endDate);
     ParseResponse(result);
 }