using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService {
public WebService () {
//Uncomment the following line if using designed components
//InitializeComponent();
}
public string FirstName { get; set; }
public string LastName { get; set; }
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
}
如何在asp.net中使用webservice创建angularjs的示例? 如何在angularjs中创建Web服务?
我创建了一个简单的angularjs示例,但是如何创建angularjs Webservice?