File: Default.asmx
<%@ WebService Language="C#" CodeBehind="~/App_Code/Default.cs" Class="Performance.Default" %>
File: ~/App_Code/Default.cs
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
namespace Performance
{
[WebService(Namespace = "http://tempuri.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Default : WebService
{
[WebMethod]
public DateTime GetData()
{
return DateTime.Now;
}
}
}