RefreshSharingFolder 操作
RefreshSharingFolder 操作使用正在共享的文件夹的最新数据刷新指定的本地文件夹。
SOAP 标头
RefreshSharingFolder 操作可以使用下表中列出的和描述的 SOAP 标头。
Header | 元素 | 说明 |
---|---|---|
RequestVersion |
RequestServerVersion |
标识操作请求的架构版本。 |
ServerVersion |
ServerVersionInfo |
标识响应请求的服务器版本。 |
RefreshSharingFolder 请求示例
说明
以下示例演示如何形成一个请求,以使用正在共享的文件夹的最新数据刷新指定的本地文件夹。 SharingFolderId 元素指定要刷新的本地文件夹的标识符。
代码
<?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>
请求元素
请求中使用以下元素:
成功的 RefreshSharingFolder 响应
说明
以下示例显示了对 RefreshSharingFolder 请求的成功响应。
代码
<?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>
成功的响应元素
响应中使用以下元素:
RefreshSharingFolder 错误响应
说明
以下示例显示了 对 RefreshSharingFolder 请求的错误响应。 在此示例中, RefreshSharingFolder 请求失败,因为找不到与指定本地文件夹对应的订阅。
代码
<?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>
错误响应元素
错误响应中使用以下元素:
另请参阅
RefreshSharingFolderResponseMessage