我正在使用Exchange Web服务在Office 365中创建会议。我将CreateItem与“ SendMeetingInvitations =” SendOnlyToAll“结合使用。这通常可以正常工作,并且可以演示如何与我的个人O365帐户一起使用。但是对于我们的一位客户,因此无法正常工作。活动已创建,但会像他是与会者一样出现在他的日历上。该活动无法编辑,邀请也没有发出。EWS没有错误。我看不出任何区别这个失败的用户和我自己的测试帐户。在失败的用户上,我可以使用O365手动创建会议,邀请也可以正常工作。以下是我发送给EWS的SOAP正文示例。欢迎提出任何建议。
<?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:Header>
<t:RequestServerVersion Version="Exchange2010_SP1"/>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrimarySmtpAddress>roomorganizer@cava.com</t:PrimarySmtpAddress>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<CreateItem SendMeetingInvitations="SendOnlyToAll"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<SavedItemFolderId>
<t:FolderId
Id="AAMkADY2ODRkZTlmLTk4NTctNGE3Ny05YTBmLTYyZjVhYSL9BMShagd2lAAAAAAENAAA="/>
</SavedItemFolderId>
<Items>
<t:CalendarItem>
<t:Subject>RoomReservation-NotR</t:Subject>
<t:Body BodyType="Text">
<![CDATA[testing reservation not reoccuring
------ Attendee Responses ------
roomorganizer@cava.com (Accepted)
cava.com_2d343534383630323830@resource.calendar.google.com (Accepted)
roomuser@cava.com (No response)
]]>
</t:Body>
<t:Importance>Normal</t:Importance>
<t:ReminderIsSet>false</t:ReminderIsSet>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertyTag="0x3004" PropertyType="String"/>
<t:Value>via TM</t:Value>
</t:ExtendedProperty>
<t:ExtendedProperty>
<t:ExtendedFieldURI PropertySetId="00062002-0000-0000-C000-000000000046"
PropertyId="33303" PropertyType="Integer"/>
<t:Value>3</t:Value>
</t:ExtendedProperty>
<t:Start>2019-02-02T17:30:00Z</t:Start>
<t:End>2019-02-02T18:30:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location>SC-2-Sriracha (8) [Jabra, Television, Zoom Room]</t:Location>
<t:RequiredAttendees>
<t:Attendee>
<t:Mailbox>
<t:Name>SC-2-Sriracha (8) [Jabra, Television, Zoom Room]</t:Name>
<t:EmailAddress>cava@resource.calendar.google.com</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
<t:Attendee>
<t:Mailbox>
<t:Name>roomuser@cava.com</t:Name>
<t:EmailAddress>roomuser@cava.com</t:EmailAddress>
</t:Mailbox>
</t:Attendee>
</t:RequiredAttendees>
</t:CalendarItem>
</Items>
</CreateItem>
</soap:Body>
</soap:Envelope>