【问题标题】:Exchange Web Service- FindItem errorExchange Web 服务 - FindItem 错误
【发布时间】:2012-12-24 08:11:13
【问题描述】:

我们使用 EWS FindItem 方法来获取邮件的 ID,一开始一切似乎都正常。 但是,当我们尝试使用 FindItem 中的 IndexedPageItemView 发出分页请求时,我们遇到了 ErrorInternalServerError 错误。 gSOAP创建的xml如下:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsi="http://www.w3.org/20    01/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/messages">
<SOAP-ENV:Header><ns2:RequestServerVersion Version="Exchange2010_SP1"></ns2:RequestServerVersion></SOAP-ENV:Header>
<SOAP-ENV:Body><ns1:FindItem xsi:type="ns1:FindItemType" Traversal="Shallow">
<ns1:ItemShape><ns2:BaseShape>IdOnly</ns2:BaseShape></ns1:ItemShape>
<ns1:IndexedPageItemView MaxEntriesReturned="50" Offset="0" BasePoint="Beginning" xsi:type="ns2:IndexedPageViewType"></ns1:IndexedPageItemView>
<ns1:ParentFolderIds><ns2:DistinguishedFolderId Id="inbox"  xsi:type="ns2:DistinguishedFolderIdType"></ns2:DistinguishedFolderId></ns1:ParentFolderIds></ns1:FindItem>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

我们错过了一些需要的东西吗?还是我们发出了错误的 SOAP 请求? 我们的开发环境是 Mac OS 10.8、xcode 4.5、C++、gSOAP 2.8 和 Exchange Server 2010。谢谢。

【问题讨论】:

    标签: exchangewebservices server-error


    【解决方案1】:

    除了为 xsi 前缀定义的命名空间中的空格外,一切看起来都很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-17
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      • 2021-12-01
      相关资源
      最近更新 更多