Fórum

Batching service invokation calls with javascript

Odysseas Doumas, modificado 6 Anos atrás.

Batching service invokation calls with javascript

New Member Postagens: 17 Data de Entrada: 22/06/16 Postagens Recentes
Is it possible to batch service calls using the javascript service invoker? Similar to this ?
thumbnail
David H Nebinger, modificado 6 Anos atrás.

RE: Batching service invokation calls with javascript

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
Odysseas Doumas:
Is it possible to batch service calls using the javascript service invoker? Similar to this ?


Isn't your question answered by the link?







Come meet me at the 2017 LSNA!
Odysseas Doumas, modificado 6 Anos atrás.

RE: Batching service invokation calls with javascript

New Member Postagens: 17 Data de Entrada: 22/06/16 Postagens Recentes
Thanks you for the answer. My bad i should be more specific.

The link describes how to use the invoker via a "classic" http request. Pretty clear.

The Liferay.Service method though takes 3 arguments. The service "relative url", the data as JSON and a callback function. In other words, it seems to me like you can only invoke ONE service per call (dunno about nested calls, haven't tried). So my question is: Does the javascript "Liferay.Service(...)" function support batch calls and how, cause it isn't clear to me whether this is possible or not?