Menu
- General Information
- Architecture :
- Services & Processes
- CookBooks
- Deployment
- Bundled Applications
- Source Code :
- Third-Party Setup :
- Polytech Staff Area :
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.
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"/>
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"/>