2016-09-18 6 views

答えて

0

EWSを使用してカレンダーアイテムを取得する場合は、ルームとリソースが返される場所と、必要な出席者とオプションの出席者がある場合、出席者がリソースタイプが強いリソースhttps://msdn.microsoft.com/en-us/library/exchangewebservices.calendaritemtype.resources(v=exchg.80).aspxにあるかどうかを確認するだけです。

出席者は、グローバルアドレス一覧にある、あなたはまたFindPeopleを使用してPersonaTypeを確認することができ、あなたは2013以上をお持ちの場合は例えば

<?xml version="1.0" encoding="UTF-8"?> 
 
<soap:Envelope 
 
       xmlns="http://schemas.microsoft.com/exchange/services/2006/types" 
 
       xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
 
       xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" 
 
       xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"> 
 
    <soap:Header> 
 
    <t:RequestServerVersion Version="Exchange2013" /> 
 
    </soap:Header> 
 
    <soap:Body > 
 
    <m:FindPeople> 
 
     <m:PersonaShape> 
 
     <t:BaseShape>Default</t:BaseShape> 
 
     </m:PersonaShape> 
 
     <m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100" Offset="0"/> 
 
     <m:ParentFolderId> 
 
     <t:DistinguishedFolderId Id="directory"/> 
 
     </m:ParentFolderId> 
 
     <m:QueryString>[email protected]</m:QueryString> 
 
    </m:FindPeople> 
 
    </soap:Body> 
 
</soap:Envelope>

には、次のようなものを返す必要があります返さ部屋

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> 
 
    <s:Header> 
 
     <h:ServerVersionInfo MajorVersion="15" MinorVersion="1" MajorBuildNumber="629" MinorBuildNumber="8" Version="V2016_07_13" 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" /> 
 
    </s:Header> 
 
    <s:Body> 
 
     <FindPeopleResponse ResponseClass="Success" xmlns="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"> 
 
      <ResponseCode>NoError</ResponseCode> 
 
      <People> 
 
       <Persona xmlns="http://schemas.microsoft.com/exchange/services/2006/types"> 
 
        <PersonaId Id="AAUQAGDlxBsmUDpClBbAI1WX04o=" /> 
 
        <PersonaType>Room</PersonaType> 
 
        <CreationTime>0001-01-02T00:00:00Z</CreationTime> 
 
        <DisplayName>Conf Room Adams</DisplayName> 
 
        <DisplayNameFirstLast>Conf Room Adams</DisplayNameFirstLast> 
 
        <DisplayNameLastFirst>Conf Room Adams</DisplayNameLastFirst> 
 
        <FileAs /> 
 
        <EmailAddress> 
 
         <Name>Conf Room Adams</Name> 
 
         <EmailAddress>[email protected]</EmailAddress> 
 
         <RoutingType>SMTP</RoutingType> 
 
         <MailboxType>Mailbox</MailboxType> 
 
        </EmailAddress> 
 
        <EmailAddresses> 
 
         <Address> 
 
          <Name>Conf Room Adams</Name> 
 
          <EmailAddress>[email protected]</EmailAddress> 
 
          <RoutingType>SMTP</RoutingType> 
 
          <MailboxType>Mailbox</MailboxType> 
 
         </Address> 
 
        </EmailAddresses> 
 
        <RelevanceScore>2147483647</RelevanceScore> 
 
       </Persona> 
 
      </People> 
 
      <TotalNumberOfPeopleInView>0</TotalNumberOfPeopleInView> 
 
      <FirstMatchingRowIndex>0</FirstMatchingRowIndex> 
 
      <FirstLoadedRowIndex>0</FirstLoadedRowIndex> 
 
     </FindPeopleResponse> 
 
    </s:Body> 
 
</s:Envelope>
用210

関連する問題