摘要:
在WCF 4.0中,为我们创建Restful API有了更好的支持。通过定义UriTemplate,WebInvoke就可以快速开发API接口。 这里我记录一下HTTP POST数据时要如何接收POST过来的数据。 1,方法一:Stream inputStream输入流方法(注意看方法 例如我的代码[OperationContract][WebInvoke(Method="POST",ResponseFormat=WebMessageFormat.Json,BodyStyle=WebMessageBodyStyle.Bare,UriTemplate="json/u 阅读全文