2.在代码中调用
protected void btnSubmit_Click(object sender, EventArgs e)
{
WeatherWebServiceSoapClient wwsc = new WeatherWebServiceSoapClient();
string[] result = wwsc.getWeatherbyCityName(this.txtCityName.Text);
CityName.Text = result[0] + result[1];
Temperature.Text = result[5];
}
.net 项目中应用Web Services(vs2012)
原文:http://www.cnblogs.com/mtsl/p/4234530.html