摘要: 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 阅读全文
posted @ 2013-04-08 15:16 骑牛射雕 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 添加引用: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() 阅读全文
posted @ 2013-04-08 14:47 骑牛射雕 阅读(248) 评论(0) 推荐(0) 编辑