我使用Exchange Server 2010處理EWS託管API。 當我請求FindItem時,服務器發生錯誤 - 「ErrorIncorrectSchemaVersion」 「請求有效,但沒有在RequestServerVersion SOAP頭中指定正確的服務器版本。請確保RequestServerVersion SOAP頭設置了正確的RequestServerVersionValue。 「 但在XML中,我已將RequestServerVersionValue指定爲Exchange2010。 我也嘗試指定Exchange2007,Exchange2007_SP1,Exchange2010_SP1,但沒有任何更改。RequestServerVersionValue在對Exchange Web服務的API請求中不起作用
<?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>[email protected]</EmailAddress>
</Mailbox>
</DistinguishedFolderId>
</ParentFolderIds>
</FindItem>
- <ExchangeImpersonation xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
- <ConnectingSID>
<PrimarySmtpAddress>[email protected]</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>
你試過提琴手找到德爾福之間的差異要求C#/ Java客戶端(WCF,SoapUI)? – mjn
我沒有。我只有Delphi客戶端。也許有人熟悉Delphi和Exchange WSDL,並從Exchange生成有效的Delphi單元?成爲我的一個是非常錯誤的,有些類將無法正常工作。 – dream2work
SoapUI是一個免費且非常流行的SOAP測試工具,它允許執行SOAP請求,您只需要在那裏導入WSDL,然後調用方法 – mjn