【发布时间】:2016-06-23 14:47:41
【问题描述】:
使用EWS operations 到目前为止,我能够在一个时间范围内获得所有会议。如何获得会议的与会者?
我已阅读here,我可以发送带有会议 ID 的附加请求,以获得附加属性 (LoadPropertiesForItem)。
对应的SOAP操作是什么?
谢谢
private String getXMLRequestForRetrieve( DateTime start, DateTime end, String meetingRoomEmailToQuery ){
return ""+
"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:typ=\"http://schemas.microsoft.com/exchange/services/2006/types\" xmlns:mes=\"http://schemas.microsoft.com/exchange/services/2006/messages\">"+
"<soapenv:Header>"+
"<typ:RequestServerVersion Version=\"Exchange2016\"/>"+
"<typ:MailboxCulture>en-US</typ:MailboxCulture>"+
"<typ:TimeZoneContext>"+
"<typ:TimeZoneDefinition Id=\"W. Europe Standard Time\"/>"+
"</typ:TimeZoneContext>"+
"</soapenv:Header>"+
"<soapenv:Body>"+
"<mes:FindItem Traversal=\"Shallow\">"+
"<mes:ItemShape>"+
"<typ:BaseShape>AllProperties</typ:BaseShape>"+ // AllProperties, IdOnly
"<typ:AdditionalProperties>"+
"<typ:FieldURI FieldURI=\"item:Subject\" /> "+
"<typ:FieldURI FieldURI=\"item:DateTimeCreated\" />"+
"<typ:FieldURI FieldURI=\"item:Sensitivity\" />"+
"<typ:FieldURI FieldURI=\"calendar:Start\" />"+
"<typ:FieldURI FieldURI=\"calendar:End\" />"+
"<typ:FieldURI FieldURI=\"calendar:IsCancelled\" />"+
"<typ:FieldURI FieldURI=\"calendar:Organizer\"/>"+
// "<typ:FieldURI FieldURI=\"item:Body\" />"+
// "<typ:FieldURI FieldURI=\"calendar:RequiredAttendees\"/>"+
"</typ:AdditionalProperties>"+
"</mes:ItemShape>"+
"<mes:CalendarView MaxEntriesReturned=\"1000\""+
" StartDate=\""+start.toString(patternFormat)+
"\" EndDate=\""+end.toString(patternFormat)+"\"/>"+ // 2016-06-10T07:00:00Z
"<mes:ParentFolderIds>"+
"<typ:DistinguishedFolderId Id=\"calendar\">"+
"<typ:Mailbox>"+
"<typ:EmailAddress>"+meetingRoomEmailToQuery+"</typ:EmailAddress>"+
"</typ:Mailbox>"+
"</typ:DistinguishedFolderId>"+
"</mes:ParentFolderIds>"+
"</mes:FindItem>"+
"</soapenv:Body>"+
"</soapenv:Envelope>";
}
【问题讨论】: