operationId must be unique across all operationBindings in a DataSource.
This doesn't stop you from calling the same method for two operationTypes via declaring the same ServerObject; in fact you can declare a ServerObject at the <DataSource> level to have all operationTypes go through a single DMI method.
Announcement
Collapse
No announcement yet.
X
-
Hi mathias,
you can define the same (or different) serverMethod for both.
You'll need a ServerObject to handle the request.
Best regards,
BlamaLast edited by Blama; 2 Sep 2014, 05:27.
Leave a comment:
-
not possible to have same operationid for fetch and update?
Hey, tried having two operationtypes share the same operationid, but have different methods being called, by configuring my ds.xml like this:
Fetch worked, but when i updated, the servermethod for the fetch operationtype was called again.Code:<operationBinding operationType="fetch" operationId="myAccount"> <serverMethod>fetchMyAccount</serverMethod> </operationBinding> <operationBinding operationType="update" operationId="myAccount"> <serverMethod>updateMyAccount</serverMethod> </operationBinding>
EDIT: currently running 4.1-p20140608
Is this not possible? Seems redundant to have the "operationtype" in that case.Tags: None
Leave a comment: