visual studio 2010 如何创建WebService?
2个回答
展开全部
protected void query_Click(object sender, EventArgs e)
{
WeatherService.WeatherWebService weather = new WeatherService.WeatherWebService();
//add
System.Net.WebProxy oWebProxy = new System.Net.WebProxy("10.10.9.9", 80);
oWebProxy.Credentials = new System.Net.NetworkCredential("user", "password", "10.10.9.9:80");
//addd
weather.Proxy = oWebProxy;
string[] content = new string[23];
string _cityname = cityname.Value.Trim();
content = weather.getWeatherbyCityName(_cityname);
weather_display.InnerHtml = _cityname + ":" + content[5] + content[0] + content[1] + content[2] + content[3] + content[4] + content[6] + content[7] + content[8] + content[9] + content[10] + content[11];
}
{
WeatherService.WeatherWebService weather = new WeatherService.WeatherWebService();
//add
System.Net.WebProxy oWebProxy = new System.Net.WebProxy("10.10.9.9", 80);
oWebProxy.Credentials = new System.Net.NetworkCredential("user", "password", "10.10.9.9:80");
//addd
weather.Proxy = oWebProxy;
string[] content = new string[23];
string _cityname = cityname.Value.Trim();
content = weather.getWeatherbyCityName(_cityname);
weather_display.InnerHtml = _cityname + ":" + content[5] + content[0] + content[1] + content[2] + content[3] + content[4] + content[6] + content[7] + content[8] + content[9] + content[10] + content[11];
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询