扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:朱先忠 来源:天极网 2007年11月17日
关键字: 软件
[WebMethod] public PersonCollection GetPeople() { return PersonCollection.CreateNew(); } |
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Web; using System.Web.Services; using BusinessCollections; using System.Xml.Serialization; namespace Service { /// <summary> /// Summary description for Service1. /// </summary> [XmlInclude(typeof(Customer)), XmlInclude(typeof(Person)), XmlInclude(typeof(Employee))] public class Service1 : System.Web.Services.WebService { public Service1() { //CODEGEN: This call is required by the ASP.NET Web服务 //Designer InitializeComponent(); } [Component Designer generated code] // WEB SERVICE EXAMPLE // The HelloWorld() example service returns the string // Hello World // To build, uncomment the following lines then save and build // the project // To test this web service, press F5 [WebMethod()] public PersonCollection GetPeople() { return PersonCollection.CreateNew(); } } } |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。