Registering and Discovering RSS Feeds in Microsoft Windows Server 2003 UDDI Services

By Karsten Januszewski

Table of Contents

Introduction
Scenario
Importing the RSS tModels
Using the RSS 0.9x UDDI Feed Aggregator Tool With UDDI Services

Introduction

In a paper called Registering and Discovering RSS Feeds in UDDI, an explanation was provided on how to model RSS Feeds in UDDI. This earlier paper focused solely on the mapping between the two data models at the XML level; it was technology neutral in terms of an implementation with which to employ this mapping.

This paper will discuss how such a usage might occur in particular within UDDI Services provided in Windows Server 2003.

Scenario

The use of UDDI behind-the-firewall has numerous applications. As a core piece of infrastructure in a Web services architecture, UDDI Services provides essential data and metadata to applications at both design-time and run-time. Such information might include access points for services, categorization information, contact information, etc.

In a situation where an organzition is making use of RSS Feeds to distribute information internally, UDDI Services can provide interoperable directory services for registering and discovering RSS Feeds. UDDI Services then becomes a registry containing the location of all RSS Feeds internally.

For example, imagine each division in a large enterprise posting news and events as an RSS feed. All of these feeds could be aggregated by issuing UDDI queries and then consuming each feed.

Importing the RSS tModels

In order to standardize the registration of RSS Feeds in UDDI Services, the XML resource file at http://winfx.members.winisp.net/docs/rss_bootstrapv2.xml should be imported into UDDI Services. This import must be performed by a user mapped to the Administrator role in UDDI Services. There are two ways to perform the import.

1. One can use the bootstrap.exe command line tool located in \inetpub\uddi\bin. This tool can only be run from a box with the UDDI Services Database Components installed. The syntax for this tool would be as follows:

     bootstrap /f [drive:][path]rss_bootstrap.xml [/u user]

If no user switch is included, the user currently logged into the machine will be the owner of these entries.

2. The other way to import this file is through the user interface, under the Coordinate section. Simply navigate to the location of the file and click the import button. When using the user interface, the owner of the entries will always be the user logged into the site.

Using the RSS 0.9x UDDI Feed Aggregator Tool With UDDI Services

Once the bootstrap file has been imported, UDDI Services can be used for RSS Feeds. Applications can be written that use the UDDI API to publish and discover RSS feeds. To reconfigure the sample application available publishing and aggregating RSS Feeds in UDDI, simply change the config file of the .exe as follows:

 
<?xml version="1.0" encoding="utf-8" ?> 
<configuration>
   <appSettings>
      <add key="UDDI_Inquire" value="http://[server name]/uddipublic/inquire.asmx" />
      <add key="UDDI_Publish" value="http[s]://[server name]/uddipublic/publish.asmx" />
      <add key="RSS91_tModelKey" value="uuid:8a056b70-bfe8-4fac-90cd-820c26dc2e48" />
</appSettings>
</configuration>
		

With this change, the application will publish and query an instance of UDDI Services as opposed to the public Microsoft UDDI node.

Additional Resources

RSS 1.0 Specification. http://purl.org/rss/1.0/spec

UDDI on MSDN. http://msdn.microsoft.com/uddi

UDDI Services in Windows Server 2003. http://go.microsoft.com/fwlink/?linkid=5202&clcid=0x409

UDDI Services in Windows Server 2003 Overview. http://www.microsoft.com/windowsserver2003/evaluation/overview/dotnet/uddi.mspx

UDDI Specifications (all versions). http://uddi.org/specfications.html