Ejemplo n.º 1
0
    /// <summary>
    /// Get disclaimer text from diworldwide web service
    /// </summary>
    /// <returns></returns>
    public string GetDisclaimerText()
    {
        string RetVal = string.Empty;

        try
        {
            DIWorldwide.Catalog CatalogService = new DIWorldwide.Catalog();
            CatalogService.Url = ConfigurationManager.AppSettings[Constants.WebConfigKey.DiWorldWide4] + Constants.WSQueryStrings.CatalogWebService;
            RetVal = CatalogService.GetDisclaimerText();
        }
        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
        }
        return RetVal;
    }
Ejemplo n.º 2
0
    private string[] GetDisclaimerText()
    {
        string[] RetVal = null;
        string DisclaimerText = string.Empty;
        try
        {
            DIWorldwide.Catalog CatalogService = new DIWorldwide.Catalog();
            CatalogService.Url = ConfigurationManager.AppSettings[Constants.WebConfigKey.DiWorldWide4] + Constants.WSQueryStrings.CatalogWebService;
            DisclaimerText = CatalogService.GetDisclaimerText();

            if (!string.IsNullOrEmpty(DisclaimerText))
            {
                RetVal = Global.SplitString(DisclaimerText, "|");
            }
        }
        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
        }
        return RetVal;
    }