Removing the "Next Page" item and the need to supply a login in RSS Web Generator feeds

Version 7

    Problem

    There are some limitations of the RSS Web Generator application in Service Desk that can make its feeds incompatible with some RSS readers.

     

    1. A "Next Page" item is included in the feed - some RSS readers see this as a new feed item each time it polls resulting in it appearing many times an hour.

     

    2. The Service Desk user name and password need to be included in the feed URL in plain text - this may be against security policies and requires the URL to be updated if the password changes.

     

    3. Some RSS readers display item publication dates incorrectly if the date falls in daylight savings of the GMT time zone.

     

    Some users also feel the link used on items is not useful for their needs and would like to launch items in Web Access instead.

    Solution

    The attached ZIP file contains a new .aspx page that can be requested instead of the existing RssQuery.aspx page and solves the limitations listed above.

     

    Installing

    1. Download the attached ZIP file and extract the RssFeed.aspx file to the RssWebGenerator folder on your Service Desk web server.

     

         The default path for Service Desk version 7.4 and earlier is: C:\inetpub\wwwroot\RssWebGenerator.

         The default path for Service Desk version 7.5 and later is: C:\Program Files (x86)\LANDesk\Service Desk\WebApp\RssGenerator.

     

    2. Open RssFeed.aspx in Notepad and locate the Settings section.

     

    3. To remove the "Next Page" item set RemoveNextPageItem to true (no quotes) or to keep the "Next Page" item set it to false (no quotes).

     

    4. To embed a user name to remove the need to supply it within the feed URL set EmbedUserName to true (no quotes) and set UserName to the relevant value (in quotes).  To supply a user name within the feed URL set EmbedUserName to false (no quotes).

     

    5. To embed a password to remove the need to supply it within the feed URL set EmbedPassword to true (no quotes) and set Password to the relevant value (in quotes).  To supply a password within the feed URL set EmbedPassword to false (no quotes).

     

    6. To launch items in Web Access set LaunchInWebAccess to true (no quotes) and alter WebAccessItemUrl to match your Web Access server and virtual directory names.  To use the original RSS Web Generator link set LaunchInWebAccess to false (no quotes).

     

    7. To fix incorrect item publication dates set FixDaylightSavings to true (no quotes).  If this fix is not required then set FixDaylightSavings to false (no quotes).

     

    8. Save and close the file.

     

    Usage

    1. Configure an RSS feed as normal and access it via RssQuery.aspx.

    2. While viewing the feed modify the URL to replace RssQuery.aspx with RssFeed.aspx.

    3. If embedding the user name remove the Login=<username>& portion of the URL.

    4. If embedding the password remove the Password=<password>& portion of the URL.

    5. If launching items in Web Access add &ClassName=<modulename>.<objectname> to the URL.  This is required to tell Web Access the type of item being launched and uses the same format as you see in a Web Access URL when viewing a record.

     

    Example URL:

    Using RssQuery.aspx:

         http://server/ServiceDesk.RSSGenerator/RssQuery.aspx?Login=SA&Password=administrator&Query=NewIncidents.

     

    Using RssFeed.aspx with both the user name and password embedded:

         http://server/ServiceDesk.RSSGenerator/RssFeed.aspx?Query=NewIncidents

     

    Using RssFeed.aspx with both the user name and password embedded and launching Incident records in Web Access:

         http://server/ServiceDesk.RSSGenerator/RssFeed.aspx?Query=NewIncidents&ClassName=IncidentManagement.Incident

     

    Usage - XML file feeds generated by RssGeneratorConsole.exe

    1. Place the RssFeed.aspx file in the same folder hosting the feed XML file.

    2. Access the feed via the Url to the XML file.

    3. In the Url prefix the XML file name with RssFeed.aspx?File=.

     

    Example URL:

    Using the XML file:

         http://server/Feeds/MyFeed.xml

     

    Using RssFeed.aspx:

         http://sever/Feeds/RssFeed.aspx?File=MyFeed.xml

     

    Note that the only setting that is relevant in this configuration is FixDaylightSavings.

     

    Change History

    v1.4 - Added the ability to read from XML file feeds.

    v1.3 - Added the ability to fix incorrect publication dates.

    v1.2 - Added the ability to launch items in Web Access.

    v1.1 - Fixed an issue when feed names contain spaces or special characters.