Introduced
WCF (Windows communication Foundation)-Web programming Model: Using WCF to create rest services, invoking WCF services using ASP.net ajax
· System.ServiceModel.Activation.WebServiceHostFactory-for hosting services that use the WCF WEB programming model
· System.ServiceModel.Activation.WebScriptServiceHostFactory-the ability to automatically add ASP.net AJAX endpoints to the service without configuration
Example (creating a rest service with WCF)
1. Service
User.cs
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text;
Using System.ServiceModel;
Using System.Runtime.Serialization;
Namespace WCF. Servicelib.web
{
/**////<summary>
///User entity class
///</summary>
[datacontract]< c14/> public class User
{
/**////<summary>
///username
///</summary>
[DataMember (order = 0)]
public string Name {get; set;}
/**////<summary>
///birthday
///</summary>
[DataMember (order = 1)] public
Dat ETime Dayofbirth {get; set;}
}
}