<pre>//IRestService.svc namespace RestService { [OperationContract] [WebInvoke( Method="POST", UriTemplate="/writeFlatFile/{inputJSonString}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare)] bool SaveLog(LogDetail inputJSonString); } [DataContract] public class LogDetail { [DataMember] public int Log1 { get; set; } [DataMember] public string Log2 { get; set; } [DataMember] public string Log3 { get; set; } } //RestService.svc //---------------- bool SaveLog(LogDetail inputJSonString) { //my program; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)