【问题标题】:EWS Request meeting as a user to book a roomEWS 以用户身份请求会议以预订房间
【发布时间】:2018-12-26 10:59:51
【问题描述】:

对于此服务器,当用户尝试在 Exchange 中预订房间时,房间会自动回复接受/拒绝。我正在尝试在 EWS 中复制此过程 - 使用服务帐户请求与用户与会者和房间资源的房间会议。为了让房间自动回复用户,而不是服务帐户,我需要使用模拟,还是有任何其他过程?我为此使用 php-ews,但任何语言的任何帮助或 SOAP 请求应包含的内容都会非常有帮助。

【问题讨论】:

    标签: exchange-server exchangewebservices


    【解决方案1】:

    您可以使用以下代码请求会议:

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                   xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"       
                   xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"       
                   xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:Header>
          <t:RequestServerVersion Version="Exchange2010" />
       </soap:Header>
       <soap:Body>
          <m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy">
             <m:Items>
                <t:CalendarItem>
                   <t:Subject>Status Meeting</t:Subject>
                   <t:Body BodyType="Text">The purpose of this meeting is to discuss project status.</t:Body>
                   <t:Start>2009-03-01T17:00:00Z</t:Start>
                   <t:End>2009-03-01T19:00:00Z</t:End>
                   <t:Location>Conf Room</t:Location>
                  <t:RequiredAttendees>
                      <t:Attendee>
                         <t:Mailbox>
                            <t:EmailAddress>user1@contoso.com</t:EmailAddress>
                         </t:Mailbox>
                      </t:Attendee>
                      <t:Attendee>
                         <t:Mailbox>
                            <t:EmailAddress>user2@contoso.com</t:EmailAddress>
                         </t:Mailbox>
                      </t:Attendee>
                   </t:RequiredAttendees>
                   <t:OptionalAttendees>
                      <t:Attendee>
                         <t:Mailbox>
                            <t:EmailAddress>user3@contoso.com</t:EmailAddress>
                         </t:Mailbox>
                      </t:Attendee>
                   </t:OptionalAttendees>
                </t:CalendarItem>
             </m:Items>
          </m:CreateItem>
       </soap:Body>
    </soap:Envelope>
    

    更多信息,请参考以下链接:

    Creating appointments and meetings by using the EWS Managed API 2.0

    Exchange Web Services Create Meeting Request Working Example

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多