OfficeDev / ews-managed-api

Other
584 stars 319 forks source link

Fail to get eml with type MeetingRequest #152

Open joewutaiwan opened 6 years ago

joewutaiwan commented 6 years ago

Hi,

I got a problem when I request for a eml, it returns an error request:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2013"/>
    <t:ExchangeImpersonation>
      <t:ConnectingSID>
        <t:PrincipalName>synoqc@synologyqc.onmicrosoft.com</t:PrincipalName>
      </t:ConnectingSID>
    </t:ExchangeImpersonation>
  </soap:Header>
  <soap:Body>
    <m:GetItem>
      <m:ItemShape>
        <t:BaseShape>IdOnly</t:BaseShape>
        <t:IncludeMimeContent>true</t:IncludeMimeContent>
      </m:ItemShape>
      <m:ItemIds>
        <t:ItemId Id="AAMkAGU0ZTQzOTM4LWUyOTUtNDc2MS04N2Q5LWNkMDEyZDBlMzYyNQJGAAAAAACFTTd4Fi/hR4mFkEkb+xOLBwCoE1Np4l3ZTKsoylURClidAAAAAAEKAACoE1Np4l3ZTKsoylURClidAADaR4SoAAA="/>
      </m:ItemIds>
    </m:GetItem>
  </soap:Body>
</soap:Envelope>

response: ErrorMimeContentConversionFailed

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Header>
    <h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="20" MajorBuildNumber="444" MinorBuildNumber="20" Version="V2018_01_08"/>
  </s:Header>
  <s:Body>
    <m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
      <m:ResponseMessages>
        <m:GetItemResponseMessage ResponseClass="Error">
          <m:MessageText>MIME content conversion failed.</m:MessageText>
          <m:ResponseCode>ErrorMimeContentConversionFailed</m:ResponseCode>
          <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
          <m:Items/>
        </m:GetItemResponseMessage>
      </m:ResponseMessages>
    </m:GetItemResponse>
  </s:Body>
</s:Envelope>

I found it is a MeetingRequest type, but others work fine. So how should I handle this type of eml, maybe getMeetingRequest item directly?

Really thanks for help