Мы используем метод EWS FindItem для получения идентификатора почты, и вначале все выглядит нормально. Однако мы столкнулись с ошибкой ErrorInternalServerError, когда попытались сделать запрос с постраничным просмотром с помощью IndexedPageItemView в FindItem. XML-файл, созданный gSOAP, выглядит следующим образом:
<?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. Спасибо.