Foren

Batching service invokation calls with javascript

Odysseas Doumas, geändert vor 6 Jahren.

Batching service invokation calls with javascript

New Member Beiträge: 17 Beitrittsdatum: 22.06.16 Neueste Beiträge
Is it possible to batch service calls using the javascript service invoker? Similar to this ?
thumbnail
David H Nebinger, geändert vor 6 Jahren.

RE: Batching service invokation calls with javascript

Liferay Legend Beiträge: 14915 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Batching service invokation calls with javascript

New Member Beiträge: 17 Beitrittsdatum: 22.06.16 Neueste Beiträge
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?