• 大小: 48KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-12
  • 语言: 其他
  • 标签: WebService  

资源简介

WebService应用实例,内附教程地址

资源截图

代码片段和文件信息

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = “http://10.11.74.74/WS/“)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    public Service () {

        //如果使用设计的组件,请取消注释以下行 
        //InitializeComponent(); 
    }

    [WebMethod(Description = “HelloWorld“)]
    public string HelloWorld()
    {
        return “Hello World“;
    }

    [WebMethod(Description = “美元汇率转换“)]
    public double DollarConvertToRMB(double Dollar)
    {
        return (Dollar * 8.15);
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        698  2012-03-10 09:54  WebService\FirstWebService\App_Code\Service.cs

     文件         84  2004-09-29 18:46  WebService\FirstWebService\Service.asmx

     文件       1546  2012-03-10 09:10  WebService\FirstWebService\Web.Config

     文件        832  2012-03-10 09:51  WebService\WSUse\WSUse\app.config

     文件      24576  2012-03-10 09:57  WebService\WSUse\WSUse\bin\Debug\WSUse.exe

     文件        832  2012-03-10 09:51  WebService\WSUse\WSUse\bin\Debug\WSUse.exe.config

     文件      34304  2012-03-10 09:57  WebService\WSUse\WSUse\bin\Debug\WSUse.pdb

     文件       5632  2005-11-11 22:25  WebService\WSUse\WSUse\bin\Debug\WSUse.vshost.exe

     文件        832  2012-03-10 09:51  WebService\WSUse\WSUse\bin\Debug\WSUse.vshost.exe.config

     文件        627  2012-03-10 09:57  WebService\WSUse\WSUse\Form1.cs

     文件       2548  2012-03-10 09:57  WebService\WSUse\WSUse\Form1.Designer.cs

     文件       5814  2012-03-10 09:57  WebService\WSUse\WSUse\Form1.resx

     文件       9216  2012-03-10 09:55  WebService\WSUse\WSUse\obj\Debug\TempPE\Web References.WebReference.Reference.cs.dll

     文件        842  2012-03-10 09:57  WebService\WSUse\WSUse\obj\Debug\WSUse.csproj.GenerateResource.Cache

     文件      24576  2012-03-10 09:57  WebService\WSUse\WSUse\obj\Debug\WSUse.exe

     文件        180  2012-03-10 09:57  WebService\WSUse\WSUse\obj\Debug\WSUse.Form1.resources

     文件      34304  2012-03-10 09:57  WebService\WSUse\WSUse\obj\Debug\WSUse.pdb

     文件        180  2012-03-10 09:57  WebService\WSUse\WSUse\obj\Debug\WSUse.Properties.Resources.resources

     文件        282  2012-03-10 09:58  WebService\WSUse\WSUse\obj\WSUse.csproj.FileList.txt

     文件        464  2012-03-10 09:39  WebService\WSUse\WSUse\Program.cs

     文件       1182  2012-03-10 09:39  WebService\WSUse\WSUse\Properties\AssemblyInfo.cs

     文件       2864  2012-03-10 09:39  WebService\WSUse\WSUse\Properties\Resources.Designer.cs

     文件       5612  2012-03-10 09:39  WebService\WSUse\WSUse\Properties\Resources.resx

     文件       1655  2012-03-10 09:51  WebService\WSUse\WSUse\Properties\Settings.Designer.cs

     文件        473  2012-03-10 09:51  WebService\WSUse\WSUse\Properties\Settings.settings

     文件       9216  2012-03-10 09:55  WebService\WSUse\WSUse\Web References\WebReference\Reference.cs

     文件        566  2012-03-10 09:55  WebService\WSUse\WSUse\Web References\WebReference\Reference.map

     文件        689  2012-03-10 09:55  WebService\WSUse\WSUse\Web References\WebReference\Service.disco

     文件       4704  2012-03-10 09:55  WebService\WSUse\WSUse\Web References\WebReference\Service.wsdl

     文件       4550  2012-03-10 09:57  WebService\WSUse\WSUse\WSUse.csproj

............此处省略20个文件信息

评论

共有 条评论