Invoke long poll service using XMLHttpRequest

Signed-off-by: OwenPatey <owen_patey@hotmail.com>