留言板
Batching service invokation calls with javascript
Odysseas Doumas,修改在6 年前。
Batching service invokation calls with javascript
New Member 帖子: 17 加入日期: 16-6-22 最近的帖子
David H Nebinger,修改在6 年前。
RE: Batching service invokation calls with javascript
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子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,修改在6 年前。
RE: Batching service invokation calls with javascript
New Member 帖子: 17 加入日期: 16-6-22 最近的帖子
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?
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?