【问题标题】:SyncFolderHierarchy is not working with Exchange server 2007SyncFolderHierarchy 不适用于 Exchange server 2007
【发布时间】:2013-03-06 16:59:22
【问题描述】:

我使用objective-c 将以下soap 请求发送到交换服务器2007。

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Body>
    <SyncFolderHierarchy  xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <FolderShape>
        <t:BaseShape>AllProperties</t:BaseShape>
      </FolderShape>
    </SyncFolderHierarchy>
  </soap:Body>
</soap:Envelope>

在回复我得到“请求无效”。来自服务器的响应
此请求适用于 Exchange Server 2010 和 2013。 但不适用于 Exchange Server 2007。


- Exchange Server 2007 支持 SyncFolderHierarchy
参考:-http://msdn.microsoft.com/en-us/library/exchange/aa564829%28v=exchg.80%29.aspx
我的问题是
[1] 对于 SyncFolderHierarchy 操作,我必须在交换服务器中进行任何设置吗?

【问题讨论】:

  • 这与 Objective-C 或 iPhone 有什么关系?这个问题似乎完全与 Exchange 服务器请求有关。
  • 我在 iphone 中创建应用程序,这就是我添加该标签的原因,
  • 不过,听起来你的问题与 iPhone 没有任何关系。
  • 这是因为当我在 c# 中使用 EWS 托管 API 时,它不会给出任何错误
  • 然后发布一些代码,或者任何与你的标签相关的东西。

标签: iphone objective-c exchange-server exchangewebservices


【解决方案1】:

我正在查询 Exchange 2010,但我必须包含一个标题:

    NSString *soapMessage = [NSString stringWithFormat:@""
                             @"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
                             @"<soap:Envelope xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:t=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:m=\"http://schemas.microsoft.com/exchange/services/2006/messages\">"
                             @"<soap:Header>"
                             @"<t:RequestServerVersion Version =\"Exchange2010_SP2\"/>"
                             @"</soap:Header>"
                             @"<soap:Body>"
                             @"<m:GetRooms>"
                             @"<m:RoomList>"
                             @"<t:EmailAddress>%@</t:EmailAddress>"
                             @"</m:RoomList>"
                             @"</m:GetRooms>"
                             @"</soap:Body>"
                             @"</soap:Envelope>"
                             @"", roomlist];

【讨论】:

  • 抱歉,我没有可供测试的 Exchange 2007 环境。
猜你喜欢
  • 2011-06-27
  • 2012-01-14
  • 1970-01-01
  • 2010-10-05
  • 2010-11-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-04-06
相关资源
最近更新 更多