using System.Net; using System.Net.Http; using System.Web.Http; using System.Web.Http.Cors;
namespaceWebApplication1.Controllers { [EnableCors(origins: "*", headers: "*", methods: "*")] publicclasspersonalTestController : ApiController { [HttpPost] public HttpResponseMessage CreateEvent() { string result = ""; result += "<?xml version=\"1.0\" encoding=\"utf-8\"?>"; result += "<bookstore>"; result += " <book>"; result += " <title>Everyday Italian</title>"; result += " <author>Giada De Laurentiis</author>"; result += " <year>2005</year>"; result += " </book>"; result += "</bookstore>";