[TYPO3-mvc] SOAP call using extbase

Martin Kutschker masi-no at spam-typo3.org
Sun Apr 11 21:16:04 CEST 2010


Jochen Rau schrieb:
> Hi Bernhard.
> 
> On 10.04.10 16:09, Bernhard Kraft wrote:
>> Hello !
>>
>> I have a question regarding extbase architecture:
>>
>> I have to implement an extension performing a SOAP request. I got the
>> basics running, my controller executes an action "formAction" which
>> displays a form. When the visitor fills in information and pushes the
>> submit button another action "resultAction" get's called.
>>
>> Now this "resultAction" should perform the SOAP request. I guess the
>> SOAP interface should get implemented as respository? Correct?
> 
> I'd suggest to do so.
> 
> The background: A repository is responsible for "storing" objects. It
> provides methods to find the "contained" objects in the language of the
> domain "findTheLatestPosts()". The consumer (the object asking
> "find....()") has no clue about how the repository actually ensures,
> that the objects are still there. Although there are days between the
> "add...()" and "find....()". The persistence backend could be a database
> system, a text file or even a SOAP service. The repository has to
> translate the wish to find a specific subset of objects into a
> appropriate call to this backend.

To be honest this answer surprises me very much. Even when the remote system really persists the
objects the local part can only be something like a facade. I agree that a RDBMS is not the only
possible implementation of a repository, but I don't think that any remote system can act as a
repository.

Hiding the fact that the storage is remote and the connection is unreliable may be nice. But IMHO
it's not wise, because if you do you're hiding a crucial point when it comes to reliability and
performance. *

Masi

* To quote Evens from memory: "If your model cannot be implemented with good performance it's broken"


More information about the TYPO3-project-typo3v4mvc mailing list