
B1:
Tạo project như sau.
B2:
Mở file IService trong thư mục App_Code và thêm dòng
Class IService:
[ServiceContract]
public interface IService
{
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.WrappedRequest)]
MyService.Service1.Persion GetData(int value);
[OperationContract]
CompositeType GetDataUsingDataContract(CompositeType...