3.1.4.5 MoveItem

The MoveItem operation moves one or more email messages to a single destination folder.

The following is the WSDL port type specification of the MoveItem operation.

 <wsdl:operation name="MoveItem">
   <wsdl:input message="tns:MoveItemSoapIn" />
   <wsdl:output message="tns:MoveItemSoapOut" />
 </wsdl:operation>

The following is the WSDL binding specification of the MoveItem operation.

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

The protocol client sends a MoveItemSoapIn request WSDL message, and the protocol server responds with a MoveItemSoapOut response WSDL message.

If the MoveItem WSDL operation request is successful, the server returns a MoveItemResponse element, as specified in [MS-OXWSCORE] section 3.1.4.7.2.2, with the ResponseClass attribute, as specified in [MS-OXWSCDATA] section 2.2.4.67, of the MoveItemResponseMessage element, as specified in [MS-OXWSCDATA] section 2.2.4.12, set to "Success". The ResponseCode element, as specified in [MS-OXWSCDATA] section 2.2.4.67, of the MoveItemResponseMessage element is set to "NoError".

If the MoveItem WSDL operation request is not successful, it returns a MoveItemResponse element with the ResponseClass attribute of the MoveItemResponseMessage element set to "Error". The ResponseCode element of the MoveItemResponseMessage element is set to one of the common errors defined in [MS-OXWSCDATA] section 2.2.5.24.

For more information, see MoveItem as described in [MS-OXWSCORE] section 3.1.4.7.

Show: