RefreshSharingFolder operation
Last modified: July 01, 2013
Applies to: Exchange Online | Exchange Server 2010 | Exchange Server 2013 | Office 365
In this article
SOAP Headers
RefreshSharingFolder Request Example
Successful RefreshSharingFolder Response
RefreshSharingFolder Error Response
The RefreshSharingFolder operation refreshes the specified local folder with the latest data from the folder that is being shared.
Description
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. 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="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2010"/>
</soap:Header>
<soap:Body>
<RefreshSharingFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<m:SharingFolderId Id="AAMkAD=" ChangeKey="AwAAA=" />
</RefreshSharingFolder>
</soap:Body>
</soap:Envelope>
Request Elements
The following elements are used in the request:
Description
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="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<RefreshSharingFolderResponseMessage ResponseClass="Success"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="http://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:
Description
The following example shows an error response to a RefreshSharingFolder request. 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="http://schemas.microsoft.com/exchange/services/2006/types" />
</soap:Header>
<soap:Body>
<RefreshSharingFolderResponseMessage ResponseClass="Error"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns="http://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: