Consuming web weather service in javascript
问题 I would like to use javascript to consume the web weather service provided by cdyne. This is my code: <html> <head> <title>weather app</title> </head> <body> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script language="JavaScript"> function CallService() { var DTO = "{ 'ZIP': '85281' }"; $.ajax({ type: "POST", url: "wsf.cdyne.com/WeatherWS/Weather.asmx/GetCityWeatherByZIP", data: JSON.stringify(DTO), contentType: "application