摘要:
1.在javascript中调用WebService <scriptlanguage="javascript"> functionPostRequestData(URL,data){ varxmlhttp=newActiveXObject("Microsoft.XMLHTTP"); xmlhttp.Open("POST",URL,false); xmlhttp.SetRequestHeader("Content-Type","text/xml;charset=utf-8"); xml 阅读全文
摘要:
添加引用:http://www.webxml.com.cn/WebServices/WeatherWebService.asmx.cs代码:WeatherWebServiceSoap w = new WeatherWebServiceSoapClient("WeatherWebServiceSoap"); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindPro(); BindCity(); } } //province protected void BindPro() 阅读全文