Exchange SOAP请求:属性LastModifiedTime
我想检索任命和/或会议的属性LastModifiedTime 我使用GetItem执行SOAP请求以检索约会及其属性: 在BaseShape我问了他所有的属性Exchange SOAP请求:属性LastModifiedTime,soap,request,exchange-server,exchangewebservices,Soap,Request,Exchange Server,Exchangewebservices,我想检索任命和/或会议的属性LastModifiedTime 我使用GetItem执行SOAP请求以检索约会及其属性: 在BaseShape我问了他所有的属性 <?xml version="1.0" encoding="UTF-8"?> <ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"> <ns0:Body> <m:GetItem xmlns:m="h
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<ns0:Body>
<m:GetItem xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:schema="http://www.w3.org/2001/XMLSchema" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:ItemShape>
<m:ItemIds>
<t:ItemId Id="AAAcAEFkbWluaXN0cmF0b3JAZWV6ZWUtaXQubG9jYWwARgAAAAAA4lfWZk1Jn0GdeuXZ7dD1wQcAe2rqVPFj70qxiOX5GP9RagAAAAAADwAAe2rqVPFj70qxiOX5GP9RagAABT20UgAA" />
</m:ItemIds>
</m:GetItem>
</ns0:Body>
</ns0:Envelope>
答复是:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="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" MajorVersion="15" MinorVersion="0" MajorBuildNumber="516" MinorBuildNumber="29" />
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ItemId Id="AAAcAEFkbWluaXN0cmF0b3JAZWV6ZWUtaXQubG9jYWwARgAAAAAA4lfWZk1Jn0GdeuXZ7dD1wQcAe2rqVPFj70qxiOX5GP9RagAAAAAADwAAe2rqVPFj70qxiOX5GP9RagAABT20UgAA" ChangeKey="DwAAABYAAAB7aupU8WPvSrGI5fkY/1FqAAAFPbiG" />
<t:ParentFolderId Id="AQAcAEFkbWluaXN0cmF0b3JAZWUAemVlAC1pdC5sb2NhbAAuAAAD4lfWZk1Jn0GdeuXZ7dD1wQEAe2rqVPFj70qxiOX5GP9RagAAAw8AAAA=" ChangeKey="AQAAAA==" />
<t:ItemClass>IPM.Appointment</t:ItemClass>
<t:Subject>my_appointment</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text" />
<t:DateTimeReceived>2014-05-06T13:04:36Z</t:DateTimeReceived>
<t:Size>3025</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2014-05-06T13:04:36Z</t:DateTimeSent>
<t:DateTimeCreated>2014-05-06T13:04:36Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:CancelCalendarItem />
<t:ForwardItem />
</t:ResponseObjects>
<t:ReminderDueBy>2014-05-05T22:00:00Z</t:ReminderDueBy>
<t:ReminderIsSet>true</t:ReminderIsSet>
<t:ReminderMinutesBeforeStart>15</t:ReminderMinutesBeforeStart>
<t:DisplayCc />
<t:DisplayTo />
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>en-US</t:Culture>
<t:Start>2014-05-05T22:00:00Z</t:Start>
<t:End>2014-05-06T22:00:00Z</t:End>
<t:IsAllDayEvent>true</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location />
<t:IsMeeting>true</t:IsMeeting>
<t:IsCancelled>false</t:IsCancelled>
<t:IsRecurring>false</t:IsRecurring>
<t:MeetingRequestWasSent>false</t:MeetingRequestWasSent>
<t:IsResponseRequested>true</t:IsResponseRequested>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:MyResponseType>Organizer</t:MyResponseType>
<t:Organizer>
<t:Mailbox>
<t:Name>Administrator</t:Name>
<t:EmailAddress>Administrator@domain.local</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
<t:Duration>P1D</t:Duration>
<t:TimeZone>(UTC+01:00) Brussels, Copenhagen, Madrid, Paris</t:TimeZone>
<t:AppointmentSequenceNumber>0</t:AppointmentSequenceNumber>
<t:AppointmentState>1</t:AppointmentState>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>
</s:Envelope>
因此,在服务器的回复中,我没有想要的LastModifiedTime属性
如何在LastModifiedTime检索此属性
谢谢大家的帮助。LastModifiedTime是CalendarItem返回的第一类属性之一,所以我不知道您为什么没有得到它。我检索到与您相同请求的日历项:
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:ItemShape>
我得到了上次修改的时间:
<t:LastModifiedTime>2014-05-16T19:28:16Z</t:LastModifiedTime>
要特别请求LastModifiedTime,您可以更改请求以包括以下内容:
<m:ItemShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:LastModifiedTime" />
</t:AdditionalProperties>
</m:ItemShape>