I work with Exchange Server 2010 trought EWS Managed API. When I do a request FindItem I get an error from server - "ErrorIncorrectSchemaVersion" "The request is valid but does not specify the correct server version in the RequestServerVersion SOAP header. Ensure that the RequestServerVersion SOAP header is set with the correct RequestServerVersionValue." But in XML I have specified a RequestServerVersionValue as Exchange2010. I also tried to specify Exchange2007, Exchange2007_SP1, Exchange2010_SP1 but nothing changed.
<?xml version="1.0" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Body>
- <FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" Traversal="Shallow">
- <ItemShape>
<BaseShape xmlns="http://schemas.microsoft.com/exchange/services/2006/types">IdOnly</BaseShape>
</ItemShape>
<IndexedPageItemView MaxEntriesReturned="100" Offset="0" BasePoint="Beginning" />
- <ParentFolderIds>
- <DistinguishedFolderId xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Id="calendar">
- <Mailbox>
<EmailAddress>test@test1.com</EmailAddress>
</Mailbox>
</DistinguishedFolderId>
</ParentFolderIds>
</FindItem>
- <ExchangeImpersonation xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
- <ConnectingSID>
<PrimarySmtpAddress>test@test1.com</PrimarySmtpAddress>
</ConnectingSID>
</ExchangeImpersonation>
<MailboxCulture xmlns="http://schemas.microsoft.com/exchange/services/2006/types">US-en</MailboxCulture>
<RequestServerVersion xmlns="http://schemas.microsoft.com/exchange/services/2006/types" Version="Exchange2010" />
- <TimeZoneContext xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
- <TimeZoneDefinition Id="FLE Standard Time">
- <Periods>
<Period Id="FLE Standard Time" />
</Periods>
</TimeZoneDefinition>
</TimeZoneContext>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>