[TYPO3-mvc] webservice instead of database as data provider

Steffen Müller typo3 at t3node.com
Tue Oct 12 16:50:28 CEST 2010


Hi.

On 12.10.2010 16:29 Martin Kutschker wrote:
> Am 12.10.2010 16:18, schrieb Thomas Mammitzsch:
>> hi list,
>>
>> how can i use data from a webservice instead from a database in my extension?
> 
> It will depend on what you want to do with the data obtained.
> 

IMO the majority of cases are read only actions. They could be solved in
theory by:

- coding a repository which fetches data from the webservice and
instantiates the model object,
- coding the correspondent model without setters, where the constructor
sets the properties using the values from the repository.

The model provides data with usual getters and can be used transparently
in extbase/fluid.

If pages change too often and webservice has limited performance,
caching of fetched data could also be an option.


-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Microblog:  http://twitter.com/t3node



More information about the TYPO3-project-typo3v4mvc mailing list