Community RSS Design
To implement the RSS feed we will follow the design of the community web service. As covered earlier in the book, a single page, communityService.asmx
, contains the community web service logic. The HttpModule
will populate a SectionInfo
object based on the request path and rewrite the request path to point to the service page. Consider:
http://server/CommunityStarterKit/Events/communityService.asmx
And:
http://server/CommunityStarterKit/Downloads/communityService.asmx
Both these requests arrive at the same ASMX file, but with different SectionInfo
objects in the Context
collection. The web service then retrieves the SectionInfo
object to produce the appropriate response.
Also there are two classes in the communityService.asmx
code-behind file that we can utilize:
ServiceResponseInfo
ServiceResponseInfoItem
The first class represents the response we send to a service, and has member properties—such as ServiceTitle
and ServiceDescription—
that can be used to populate...