【问题标题】:IIS + SharePoint 2013 + CMIS: Disable Multi-part SOAP ResponseIIS + SharePoint 2013 + CMIS:禁用多部分 SOAP 响应
【发布时间】:2016-03-31 18:52:30
【问题描述】:

我在 IIS 8.5 中托管的 SharePoint 2013 中激活了 CMIS,问题是我能够调用 SOAP 服务,但响应总是返回 Content-Type: multi-part / related 不支持源应用程序(它不会)。

谁能帮我禁用多部分内容类型?我已经搜索了几天,并且一直在探索所有 SharePoint 和 IIS 选项,但没有任何运气。

问题还在于我不确定是谁将其作为多部分发送:CMIS、SharePoint、IIS...虽然我认为是 IIS,因为我至少可以更改响应标头,从 IIS 添加自定义标头,但我没有找到任何方法来禁用多部分的东西......

这是一个例子,忽略响应内容...

Cache-Control: private
Content-Length: 998
**Content-Type: multipart/related;** type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:4748e8de-7139-47e4-914e-1d42beac1762+id=2";start-info="text/xml"
Server: Microsoft-IIS/8.5
X-SharePointHealthScore: 0
MIME-Version: 1.0
X-AspNet-Version: 4.0.30319
SPRequestGuid: ec016e9d-8e7d-7035-4d00-69b3136bea29
request-id: ec016e9d-8e7d-7035-4d00-69b3136bea29
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 41
SPIisLatency: 4
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 15.0.0.4569
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
Date: Thu, 31 Mar 2016 18:31:38 GMT


**--uuid:4748e8de-7139-47e4-914e-1d42beac1762+id=2**
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="text/xml"
.......
....
....

谢谢。

更新:

我发现Service被部署为WCF Service (.svc),所以新的问题是:

如何将我无法访问代码并部署为 .svc 的服务中的所有操作的 messageEncoding 更改为“Text”?

服务名称 = 对象服务 绑定 = ObjectServicePortBinding

【问题讨论】:

    标签: iis sharepoint soap multipart cmis


    【解决方案1】:

    如果你能把它关掉,我会很惊讶。 CMIS 规范要求使用 MTOM(多部分)。并且确实需要传输文档内容。

    【讨论】:

    • 但我想有办法在从 IIS 发送之前转换 xml,有什么线索吗?
    【解决方案2】:

    我终于使用 REST API 而不是 SOAP,所以问题已经消失了,尽管我永远不会知道原始问题的答案:(

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多