Monday, May 4, 2015

HƯỚNG DẪN TẠO VB SERVICE JSON:

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...