So, same stuff holds true for the webservices which are deployed in other domains. You cannot invoke them from your domain by just using XMLHtppRequest. there are two solutions to this.
2. Second approach is using proxy . You can send your request through a proxy resource located in the same domain where the web service is deployed. this proxy forwards the request to the webservice and returns the result to the browser.