Partager via


3.1.4.4 Unsubscribe

The Unsubscribe operation removes a pull or streaming subscription to notifications of events on mailboxes. If other subscription types are specified, a ResponseCode ([MS-OXWSCDATA] section 2.2.5.24) element with ErrorInvalidSubscription will be returned.<14>

The following is the WSDL port type specification for the Unsubscribe operation.

 <wsdl:operation name="Unsubscribe">
    <wsdl:input message="tns:UnsubscribeSoapIn" />
    <wsdl:output message="tns:UnsubscribeSoapOut" />
 </wsdl:operation>

The following is the WSDL binding specification for the Unsubscribe operation.

 <wsdl:operation name="Unsubscribe">
    <soap:operation soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/Unsubscribe" />
    <wsdl:input>
       <soap:header message="tns:UnsubscribeSoapIn" part="Impersonation" use="literal"/>
       <soap:header message="tns:UnsubscribeSoapIn" part="MailboxCulture" use="literal"/>
       <soap:header message="tns:UnsubscribeSoapIn" part="RequestVersion" use="literal"/>
       <soap:body parts="request" use="literal" />
    </wsdl:input>
    <wsdl:output>
       <soap:body parts="UnsubscribeResult" use="literal" />
       <soap:header message="tns:UnsubscribeSoapOut" part="ServerVersion" use="literal"/>
    </wsdl:output>
 </wsdl:operation>