2012-12-24 1 views
1

Nous utilisons la méthode EWS FindItem pour obtenir l'ID des messages, et tout semble correct au début. Toutefois, nous avons rencontré Erreur ErrorInternalServerError lorsque nous avons essayé de faire une demande paginée en utilisant IndexedPageItemView dans FindItem. Le xml créé par gSOAP est comme suit:Service Web Exchange - Erreur FindItem

<?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> 

Est-ce que nous manquons quelque chose nécessaire? ou nous avons fait la demande SOAP incorrecte? Notre environnement de développement est Mac OS 10.8, xcode 4.5, C++, gSOAP 2.8 et Exchange Server 2010. Merci.

Répondre

0

Tout semble correct, sauf les espaces dans l'espace de noms définis pour le préfixe xsi.

Questions connexes