mehtashail
Posts: 0
Joined: Tue Feb 04, 2014 1:29 am

Is there any difference in invoking service calls from Javascript vs using Invoke Service?

Is there any difference in invoking service calls from Javascript vs using Invoke Service? I am changing a few of my calls to perform validation before the call. I want to ensure there is absolutely no difference in actual execution of the service.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Is there any difference in invoking service calls from Javascript vs using Invoke Service?

Hello!

There is no difference. But please don't forget the try-catch block in case if the service happens to be some sort of error.
I.e. call this way
pretry {
restserviceName.execute({});
} catch (e) {
console.error(e);
hideSpinner();
};/pre

Return to “Issues”