• 大小: 0.11M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 接口  天气预报  C#  c  天气  

资源简介

实现调用接口,输入城市,就可以查询到天气情况

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace weather1
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender EventArgs e)
        {

        }

        protected void Button1_Click(object sender EventArgs e)
        {
            //Weather.WeatherWebServiceSoapClient w = new Weather.WeatherWebServiceSoapClient(“WeatherWebServiceSoap“);
            cn.com.webxml.www.WeatherWebService w = new cn.com.webxml.www.WeatherWebService();
            //把webservice当做一个类来操作  
            string[] 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-08-03 10:19  weather1\
     文件          35  2017-08-03 10:20  weather1\reader.txt
     文件       43818  2017-08-03 09:22  weather1\UpgradeLog.htm
     目录           0  2017-08-03 10:19  weather1\weather1\
     文件         993  2017-08-03 09:22  weather1\weather1.sln
     文件       14848  2016-12-05 23:32  weather1\weather1.suo
     文件       38400  2017-08-03 10:17  weather1\weather1.v12.suo
     目录           0  2016-12-05 23:24  weather1\weather1\App_Data\
     目录           0  2017-08-03 10:19  weather1\weather1\bin\
     文件       15360  2017-08-03 10:05  weather1\weather1\bin\weather1.dll
     文件        2103  2016-12-05 23:26  weather1\weather1\bin\weather1.dll.config
     文件       32256  2017-08-03 10:05  weather1\weather1\bin\weather1.pdb
     文件       23040  2017-08-03 10:05  weather1\weather1\bin\weather1.xmlSerializers.dll
     目录           0  2017-08-03 10:16  weather1\weather1\css\
     文件         441  2017-08-03 10:16  weather1\weather1\css\demo.css
     文件        1265  2017-08-03 10:09  weather1\weather1\Default.aspx
     文件        1485  2016-12-05 23:27  weather1\weather1\Default.aspx.cs
     文件        1826  2017-08-03 10:05  weather1\weather1\Default.aspx.designer.cs
     目录           0  2017-08-03 10:19  weather1\weather1\obj\
     目录           0  2017-08-03 10:19  weather1\weather1\obj\Debug\
     文件        7080  2017-08-03 09:55  weather1\weather1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2017-08-03 09:22  weather1\weather1\obj\Debug\TempPE\
     文件       14848  2017-08-03 09:22  weather1\weather1\obj\Debug\TempPE\Web References.cn.com.webxml.www.Reference.cs.dll
     文件         506  2016-12-05 23:29  weather1\weather1\obj\Debug\weather1.csproj.FileListAbsolute.txt
     文件       15360  2016-12-05 23:30  weather1\weather1\obj\Debug\weather1.dll
     文件       32256  2016-12-05 23:30  weather1\weather1\obj\Debug\weather1.pdb
     目录           0  2017-08-03 10:19  weather1\weather1\obj\Release\
     文件        7082  2017-08-03 09:55  weather1\weather1\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2017-08-03 09:23  weather1\weather1\obj\Release\Package\
     目录           0  2017-08-03 10:19  weather1\weather1\obj\Release\Package\PackageTmp\
     目录           0  2017-08-03 10:19  weather1\weather1\obj\Release\Package\PackageTmp\bin\
............此处省略35个文件信息

评论

共有 条评论