2012年10月,我正在使用Azure SDK。.NET存储客户端库中的ODataLib依赖关系通过ODataLib(版本5.0.2)解决。当我火在Azure上表的查询例外,我得到如下:列举Azure休息呼叫响应时出现Mime-Type异常
A supported MIME type could not be found that matches the content type
of the response. None of the supported type(s) 'application/atom+xml;type=feed,
application/atom+xml, application/json;odata=verbose' matches the content type
'text/xml;charset=utf-8'.
当我用菲德勒跟踪的HTTP标头值,
的请求是
Accept: application/atom+xml,application/xml
为回复是
Content-Type: text/xml;charset=utf-8
我确定它是因为我的组织中有代理发生。 (bcs相同的代码工作正常,没有代理)。 那么谁能帮助我解决这个问题?
1)有没有一种方法来设置内容类型,而射击查询?
2)或ODataLib不处理Content-Type:text/xml; charset = utf-8?
感谢您的回复。正如你所说的,我们试图在接收到响应之后并枚举它之前更改头Content-Type字段(使用Fidler的CustomRules选项)。它工作得很好。 –