解决方案 »

  1.   

    var URL = "http://www.webxml.com.cn/WebServices/WeatherWS.asmx";
    你的url并没有指定要去请求ws的哪个方法
      

  2.   


    在open之后有设置请求头,帖子发的急,没贴上 网上很多调用web服务的,可试着不行啊
                xmlhttp.open("GET", URL, true);
                xmlhttp.onreadystatechange = callback;
                xmlhttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
                xmlhttp.setRequestHeader("SOAPAction", "http://tempuri.org/getRegionCountry");            xmlhttp.send(data);