CachedFeedReader

Overview

This orchestrationenrich the FeedReader orchestration using cache mechanism. Using a given validity, it returns (chen the cache is valid) the cache content instead of reading the external stream, and put stream content into the cache when validity period isn't up to date.

Architectural Description

Business Process Description

Request

The orchestration receive a name (xsd:string) and a validity period (xsd:int) inside its input message.

<xsd:complexType name="CachedFeedReaderIn">
  <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="validity" type="xsd:int" default="30"/>
  </xsd:sequence>
</xsd:complexType>
<xsd:element name="CachedFeedReaderRequest" type="tns:CachedFeedReaderIn"/>

Response

This orchestration works as an enriched indirection for the RssReader service. So, it basically forward as output the same data type as FeedReader, ie a feedContent (from RssReader).

<xsd:import schemaLocation="localhost_9080/RssReaderService.xsd"
            namespace="http://feeds.technical.jSeduite.modalis.i3s.unice.fr/"/>
<xsd:complexType name="CachedFeedReaderOut">
  <xsd:sequence>
    <xsd:element name="return" type="ns0:feedContent"/>
  </xsd:sequence>
</xsd:complexType>
<xsd:element name="CachedFeedReaderResponse" type="tns:CachedFeedReaderOut"/>

Download

services/orch/cachedfeedreader.txt · Last modified: 2009/03/10 19:45 by mosser
CC Attribution-Noncommercial-Share Alike 3.0 Unported www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0