webservice

Web Service 的代码如下

View Code
using System;

using System.Web;

using System.Collections;

using System.Web.Services;

using System.Web.Services.Protocols;





/// <summary>

/// WebService 的摘要说明

/// </summary>

[WebService(Namespace = "http://tempuri.org/")]

[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

public class WebService : System.Web.Services.WebService 

{



    public WebService () {



        //如果使用设计的组件,请取消注释以下行 

        //InitializeComponent(); 

    }



    [WebMethod]

    public string HelloWorld()

    {

        return "Hello World";

    }

    

    

}

 

 

你可能感兴趣的:(webservice)