using System.IO; using System.ServiceModel; using System.ServiceModel.Web; namespace RiaServiceLibrary { [ServiceContract] public interface IWXFilePathService { [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "GetUrlByMD5SerialNum?content={content}&clientid={clientid}&sign={sign}")] Stream GetUrlByMD5SerialNum(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", UriTemplate = "AddMD5SerialNum?content={content}&clientid={clientid}&sign={sign}")] Stream AddMD5SerialNum(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", //ResponseFormat = WebMessageFormat.Json, //RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Upload/{fileName}")] void Upload(Stream input, string fileName); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "test")] void test(); } }