UninstallApp 操作
UninstallApp EWS 操作に関する情報を検索します。
UninstallApp 操作では、Outlook のメール アプリがアンインストールされます。
この操作は Exchange Server 2013 で導入されました。
UninstallApp 操作の使用
UninstallApp 操作は、アンインストールするメール アプリを識別する要求で 1 つの引数を受け取ります。
UninstallApp 操作 SOAP ヘッダー
UninstallApp 操作では、次の表に示す SOAP ヘッダーを使用できます。
ヘッダー名 | 要素 | 説明 |
---|---|---|
RequestVersion |
RequestServerVersion |
操作要求のスキーマ バージョンを識別します。 このヘッダーは要求に適用されます。 |
ServerVersion |
ServerVersionInfo |
要求に応答したサーバーのバージョンを識別します。 このヘッダーは、応答に適用できます。 |
UninstallApp 操作要求の例: メールボックス内のメール アプリをアンインストールする
次の UninstallApp 操作要求の例は、アプリ識別子を使用してメール アプリをアンインストールする方法を示しています。 アプリ識別子は、 GetAppManifests 操作によって返されるアプリ マニフェストにあります。
<?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"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013" />
</soap:Header>
<soap:Body >
<m:UninstallApp>
<m:ID>1C50226D-04B5-4AB2-9FCD-42E236B59E4B</m:ID>
</m:UninstallApp>
</soap:Body>
</soap:Envelope>
要求 SOAP 本文には、次の要素が含まれています。
UninstallApp 操作の応答が成功しました
次の例は、メール アプリを アンインストールするための UninstallApp 操作要求に対する正常な応答を示しています。
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UninstallAppResponse ResponseClass="Success"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
</UninstallAppResponse>
</s:Body>
</s:Envelope>
応答 SOAP 本文には、次の要素が含まれています。
UninstallApp 操作エラー応答
次の例は、 UninstallApp 操作要求に対するエラー応答を示しています。 これは、既にアンインストールされているメール アプリをアンインストールする要求に対する応答です。
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="556"
MinorBuildNumber="14"
Version="Exchange2013"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<UninstallAppResponse ResponseClass="Error"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Extension ID 1c50226d-04b5-4ab2-9fcd-42e236b59e4b can't be found.</MessageText>
<ResponseCode>ErrorInternalServerError</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</UninstallAppResponse>
</s:Body>
</s:Envelope>
エラー応答 SOAP 本文には、次の要素が含まれています。
EWS に汎用であり、この操作に固有のその他のエラー コードについては、「 ResponseCode」を参照してください。