Skip to content Skip to sidebar Skip to footer

Xmlhttprequest Get In Javascript Does Not Give Response

I am trying to consume the weather web service provided by wsf.cdyne.com/WeatherWS/Weather.asmx. I am sure that I can get a response in XML format by using the uri ' 'http://wsf.cd

Solution 1:

As correctly stated by @robertklep this request is cross-domain. Browsers disallow cross-browser requests as a security measure so you don't hijack the user's sessions on their sites etc.

To get it to work you can create a proxy on the local site. If the site offers support to use JSONP cross-domain, you could use that.

For more information lookup some information on cross-domain policies or if they have some API docs, they may have information there on your problem too.

Post a Comment for "Xmlhttprequest Get In Javascript Does Not Give Response"