Пример #1
0
 public static List<string> RequestUPSGetSupportedAV()
 {
     string methodName = MethodBase.GetCurrentMethod().Name;
     logger.DebugFormat("BEGIN: {0}()", methodName);
     List<string> ret = new List<string>();
     //Get UPS available AV partNo
     try
     {
         UPSPrimaryServiceSoapClient soapClient = new UPSPrimaryServiceSoapClient("UPS");
         DataSet ds = soapClient.UPSGetSupportedAV(new DateTime(2000, 01, 01));
         DataRowCollection drs = ds.Tables[0].Rows;
         foreach (DataRow dr in drs)
         {
             ret.Add(dr["TemplateName"].ToString().Trim());
         }
        
         return ret;
     }
     catch (Exception e)
     {
         logger.Error(methodName, e);
         throw e;
     }
     finally
     {
         logger.DebugFormat("END: {0}()", methodName);
     }
 }