Calling a web service from javascript using XMLHttpRequest