且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WCF数据服务-自定义POST方法

更新时间:2022-03-04 08:16:09

请参考短篇小说:内容类型必须为JSON.

Short story: The content type must be JSON.

如果调用请求包含任何非绑定参数值,则 请求的Content-Type必须为'application/json',并且 参数值必须在JSON对象中的单个JSON对象中进行编码 请求正文.

If the invoke request contains any non-binding parameter values, the Content-Type of the request MUST be 'application/json', and the parameter values MUST be encoded in a single JSON object in the request body.