RefreshSharingFolder 操作RefreshSharingFolder operation

Refreshsharingfolder操作は、指定されたローカルフォルダーを、共有されているフォルダーの最新のデータで更新します。The RefreshSharingFolder operation refreshes the specified local folder with the latest data from the folder that is being shared.

SOAP ヘッダーSOAP Headers

Refreshsharingfolder操作では、次の表に記載されている SOAP ヘッダーを使用できます。The RefreshSharingFolder operation can use the SOAP headers that are listed and described in the following table.

HeaderHeader 要素Element 説明Description
RequestVersionRequestVersion
RequestServerVersionRequestServerVersion
操作要求のスキーマバージョンを識別します。Identifies the schema version for the operation request.
ServerVersionServerVersion
ServerVersionInfoServerVersionInfo
要求に応答したサーバーのバージョンを識別します。Identifies the version of the server that responded to the request.

RefreshSharingFolder 要求の例RefreshSharingFolder request example

DescriptionDescription

次の例は、共有されているフォルダーの最新データを使用して、指定したローカルフォルダーを更新する要求を形成する方法を示しています。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. SharingFolderId要素は、更新するローカルフォルダーの識別子を指定します。The SharingFolderId element specifies the identifier of the local folder to be refreshed.

コードCode

<?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>

Request 要素Request elements

要求では、次の要素が使用されます。The following elements are used in the request:

正常な RefreshSharingFolder 応答Successful RefreshSharingFolder Response

DescriptionDescription

次の例は、 Refreshsharingfolder要求に対する正常な応答を示しています。The following example shows a successful response to a RefreshSharingFolder request.

コードCode

<?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>

成功した応答要素Successful response elements

応答では、次の要素が使用されます。The following elements are used in the response:

RefreshSharingFolder エラー応答RefreshSharingFolder error response

DescriptionDescription

次の例は、 Refreshsharingfolder要求に対するエラー応答を示しています。The following example shows an error response to a RefreshSharingFolder request. この例では、指定したローカルフォルダーに対応するサブスクリプションが見つからなかったため、 Refreshsharingfolder要求が失敗しました。In this example, the RefreshSharingFolder request failed because a subscription that corresponds to the specified local folder was not found.

コードCode

<?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>

エラー応答要素Error response elements

エラー応答では、次の要素が使用されます。The following elements are used in the error response:

関連項目See also

RefreshSharingFolderRefreshSharingFolder

RefreshSharingFolderTypeRefreshSharingFolderType

RefreshSharingFolderResponseMessageRefreshSharingFolderResponseMessage

RefreshSharingFolderResponseMessageTypeRefreshSharingFolderResponseMessageType

Exchange での EWS 操作EWS operations in Exchange