Avoid using a web service with XMLHttpRequest inside a loop | CAST Appmarq