Operação RefreshSharingFolderRefreshSharingFolder operation

A operação RefreshSharingFolder atualiza a pasta local especificada com os dados mais recentes da pasta que está sendo compartilhada.The RefreshSharingFolder operation refreshes the specified local folder with the latest data from the folder that is being shared.

Cabeçalhos SOAPSOAP Headers

A operação RefreshSharingFolder pode usar os cabeçalhos SOAP listados e descritos na tabela a seguir.The RefreshSharingFolder operation can use the SOAP headers that are listed and described in the following table.

HeaderHeader ElementoElement DescriçãoDescription
RequestVersionRequestVersion
RequestServerVersionRequestServerVersion
Identifica a versão do esquema para a solicitação de operação.Identifies the schema version for the operation request.
ServerVersionServerVersion
ServerVersionInfoServerVersionInfo
Identifica a versão do servidor que respondeu à solicitação.Identifies the version of the server that responded to the request.

Exemplo de solicitação RefreshSharingFolderRefreshSharingFolder request example

DescriçãoDescription

O exemplo a seguir mostra como formar uma solicitação para atualizar a pasta local especificada com os dados mais recentes da pasta que está sendo compartilhada.The following example shows how to form a request to refresh the specified local folder with the latest data from the folder that is being shared. O elemento SharingFolderId especifica o identificador da pasta local a ser atualizada.The SharingFolderId element specifies the identifier of the local folder to be refreshed.

CódigoCode

<?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"
               xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
               xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types">
  <soap:Header>
    <t:RequestServerVersion Version="Exchange2010"/>
  </soap:Header>
  <soap:Body>
    <RefreshSharingFolder xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
      <m:SharingFolderId Id="AAMkAD=" ChangeKey="AwAAA=" />
    </RefreshSharingFolder>
  </soap:Body>
</soap:Envelope>

Elementos RequestRequest elements

Os seguintes elementos são usados na solicitação:The following elements are used in the request:

Resposta RefreshSharingFolder bem-sucedidaSuccessful RefreshSharingFolder Response

DescriçãoDescription

O exemplo a seguir mostra uma resposta bem-sucedida a uma solicitação RefreshSharingFolder .The following example shows a successful response to a RefreshSharingFolder request.

CódigoCode

<?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="14" 
                         MinorVersion="0" 
                         MajorBuildNumber="639" 
                         MinorBuildNumber="11" 
                         Version="Exchange2010" 
                         xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
  </soap:Header>
  <soap:Body>
    <RefreshSharingFolderResponseMessage ResponseClass="Success"
                                xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
                                xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
                                xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
      <m:ResponseCode>NoError</m:ResponseCode>
    </RefreshSharingFolderResponseMessage>
  </soap:Body>
</soap:Envelope>

Elementos de resposta bem-sucedidosSuccessful response elements

Os seguintes elementos são usados na resposta:The following elements are used in the response:

Resposta de erro RefreshSharingFolderRefreshSharingFolder error response

DescriçãoDescription

O exemplo a seguir mostra uma resposta de erro a uma solicitação RefreshSharingFolder .The following example shows an error response to a RefreshSharingFolder request. Neste exemplo, a solicitação RefreshSharingFolder falhou porque uma assinatura que corresponde à pasta local especificada não foi encontrada.In this example, the RefreshSharingFolder request failed because a subscription that corresponds to the specified local folder was not found.

CódigoCode

<?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="14" 
                         MinorVersion="0" 
                         MajorBuildNumber="639" 
                         MinorBuildNumber="11" 
                         Version="Exchange2010" 
                         xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types" />
  </soap:Header>
  <soap:Body>
    <RefreshSharingFolderResponseMessage ResponseClass="Error"
                                xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
                                xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"
                                xmlns="https://schemas.microsoft.com/exchange/services/2006/messages">
      <m:MessageText>Failed to synchronize the sharing folder.</m:MessageText>
      <m:ResponseCode>ErrorSharingSynchronizationFailed</m:ResponseCode>
      <m:DescriptiveLinkKey>0</m:DescriptiveLinkKey>
      <m:MessageXml>
        <t:Value Name="ErrorDetails">Microsoft.Exchange.InfoWorker.Common.Sharing.SubscriptionNotFoundException: The subscription wasn't found.;</t:Value>
      </m:MessageXml>
    </RefreshSharingFolderResponseMessage>
  </soap:Body>
</soap:Envelope>

Elementos de resposta de erroError response elements

Os seguintes elementos são usados na resposta de erro:The following elements are used in the error response:

Confira tambémSee also

RefreshSharingFolderRefreshSharingFolder

RefreshSharingFolderTypeRefreshSharingFolderType

RefreshSharingFolderResponseMessageRefreshSharingFolderResponseMessage

RefreshSharingFolderResponseMessageTypeRefreshSharingFolderResponseMessageType

Operações do EWS no ExchangeEWS operations in Exchange