2012年9月6日
摘要: 异常信息:The incoming message has an unexpected message format ‘Raw’. The expected message formats for the operation are ‘Xml’, ‘Json’.在使用Fiddler工具(可免费下载),测试RESTFul WCF 服务的POST方法时,出现了上述异常印象。这时,记得需要在header中添加Content-Type指令,如下所示:Content-Type: application/xml; charset=utf-8或者Content-Type: text/xml如果是传入JSON 阅读全文
posted @ 2012-09-06 08:56 EntLib 阅读(914) 评论(0) 推荐(0) 编辑