Operação GetItem (item de calendário)
A operação GetItem obtém itens de calendário do exchange store.
Exemplo de solicitação GetItem
Descrição
O exemplo a seguir de uma solicitação GetItem mostra como formar uma solicitação para obter a identidade e o assunto de um item.
Código
<?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:Body>
<GetItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ItemShape>
<t:BaseShape>IdOnly</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="item:Subject"/>
</t:AdditionalProperties>
</ItemShape>
<ItemIds>
<t:ItemId Id="AsdD89=" ChangeKey="Jajs3=="/>
</ItemIds>
</GetItem>
</soap:Body>
</soap:Envelope>
Elementos de solicitação
Os seguintes elementos são usados na solicitação:
Observação
O esquema que descreve este elemento está localizado no diretório virtual do EWS do computador que está executando o MicrosoftExchange Server 2007 que tem instalada a função de servidor de Acesso para Cliente.
Para encontrar outras opções para a mensagem de solicitação da operação GetItem, explore a hierarquia de esquema. Comece no elemento GetItem .
Resposta GetItem bem-sucedida
Descrição
O exemplo a seguir mostra uma resposta bem-sucedida à solicitação GetItem. A solicitação que criou essa resposta usou o eixo base IdOnly. Neste exemplo, a resposta retorna apenas a ID do item.
Observação
A ID do item e a chave de alteração foram encurtadas para preservar a legibilidade.
Código
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8" MinorVersion="0" MajorBuildNumber="602" MinorBuildNumber="0"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ItemId Id="ASUAd" ChangeKey="otlIqB=="/>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Descrição
O exemplo a seguir mostra uma resposta bem-sucedida à solicitação GetItem. A solicitação que criou essa resposta usou o conjunto de base padrão. Neste exemplo, a resposta retorna a forma Padrão para um item de calendário.
Observação
A ID do item e a chave de alteração foram encurtadas para preservar a legibilidade.
Código
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8" MinorVersion="0" MajorBuildNumber="602" MinorBuildNumber="0"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ItemId Id="ASUAdTB" ChangeKey="otlIqBwrt=="/>
<t:ResponseObjects>
<t:ForwardItem/>
</t:ResponseObjects>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:Organizer>
<t:Mailbox>
<t:Name>Bob</t:Name>
<t:EmailAddress>someone@example.com</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Descrição
O exemplo a seguir mostra uma resposta bem-sucedida à solicitação GetItem. A solicitação que criou essa resposta usou a base do AllProperties. Neste exemplo, a resposta retorna a forma AllProperties para um item de calendário.
Código
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<t:ServerVersionInfo MajorVersion="8" MinorVersion="0" MajorBuildNumber="602" MinorBuildNumber="0"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"/>
</soap:Header>
<soap:Body>
<GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:CalendarItem>
<t:ItemId Id="ASUAdT" ChangeKey="otlIqB=="/>
<t:ParentFolderId Id="ASUAdT=="/>
<t:ItemClass>IPM.Appointment</t:ItemClass>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text"/>
<t:DateTimeReceived>2006-06-16T00:12:41Z</t:DateTimeReceived>
<t:Size>374</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>2006-06-16T00:12:41Z</t:DateTimeSent>
<t:DateTimeCreated>2006-06-16T00:12:41Z</t:DateTimeCreated>
<t:ResponseObjects>
<t:ForwardItem/>
</t:ResponseObjects>
<t:ReminderDueBy>2006-06-16T00:30: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>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:IsAllDayEvent>false</t:IsAllDayEvent>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:IsMeeting>false</t:IsMeeting>
<t:IsCancelled>false</t:IsCancelled>
<t:IsRecurring>false</t:IsRecurring>
<t:MeetingRequestWasSent>false</t:MeetingRequestWasSent>
<t:CalendarItemType>Single</t:CalendarItemType>
<t:MyResponseType>Organizer</t:MyResponseType>
<t:Organizer>
<t:Mailbox>
<t:Name>Bob</t:Name>
<t:EmailAddress>someone@example.com</t:EmailAddress>
<t:RoutingType>SMTP</t:RoutingType>
</t:Mailbox>
</t:Organizer>
<t:ConflictingMeetingCount>2</t:ConflictingMeetingCount>
<t:AdjacentMeetingCount>0</t:AdjacentMeetingCount>
<t:ConflictingMeetings>
<t:CalendarItem>
<t:ItemId Id="ASUAdTB" ChangeKey="otlIqBwr=="/>
<t:Subject/>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location/>
</t:CalendarItem>
<t:CalendarItem>
<t:ItemId Id="ASUAd" ChangeKey="otlIqBw=="/>
<t:Subject/>
<t:Start>2006-06-16T00:30:00Z</t:Start>
<t:End>2006-06-16T01:00:00Z</t:End>
<t:LegacyFreeBusyStatus>Busy</t:LegacyFreeBusyStatus>
<t:Location/>
</t:CalendarItem>
</t:ConflictingMeetings>
<t:Duration>PT30M</t:Duration>
<t:TimeZone>Pacific Standard Time</t:TimeZone>
<t:AppointmentSequenceNumber>0</t:AppointmentSequenceNumber>
<t:AppointmentState>0</t:AppointmentState>
</t:CalendarItem>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</GetItemResponse>
</soap:Body>
</soap:Envelope>
Comments
Para encontrar outras opções para a mensagem de resposta da operação GetItem, explore a hierarquia de esquema. Comece no elemento GetItemResponse .
Elementos de resposta bem-sucedidos
Os seguintes elementos são usados na resposta: