2013-04-09 1 views
2

그래서 office360.com에서 모든 일정 이벤트를 가져 오려고합니다. 나는 데이터를 얻기 위해 ews를 사용하고있다. 나는 요청을 보냈다Exchange EWS에서 일정 기간 동안 메시지 본문을 반환하지 않습니다.

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
       xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> 
    <soap:Body> 
    <FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" 
       xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
       Traversal="Shallow"> 
     <ItemShape> 
     <t:BaseShape>AllProperties</t:BaseShape> 
     <t:BodyType>HTML</t:BodyType> 
     </ItemShape> 
     <ParentFolderIds> 
     <t:DistinguishedFolderId Id="calendar"/> 
     </ParentFolderIds> 
    </FindItem> 
    </soap:Body> 
</soap:Envelope> 

이 비누 요청 XML은 나에게 달력 메시지 본문을 반환하지 않지만 주제와 다른 데이터를 얻는다. 여기서 내가 뭘 잘못하고 있니? 어떤 도움을 주셔서 감사합니다.

답변

3

본문은 별도의 호출에서 검색해야합니다.

http://weblogs.asp.net/psperanza/archive/2008/03/18/getting-calendar-items-using-exchange-web-services.aspx

또는 먼저 속성을로드 할 수 있습니다.

http://blogs.msdn.com/b/exchangedev/archive/2010/03/16/loading-properties-for-multiple-items-with-one-call-to-exchange-web-services.aspx

두 번째는 쉽게하지만 당신은 당신이 다시 원하는 모든 속성을 정의해야하고 많은 경우, 그것은 고통이 될 수 있습니다.

관련 문제