3.1.4.5 MoveItem Operation

The MoveItem operation moves Post objects on the server. This operation is specified in [MS-OXWSCORE] section 3.1.4.7.

The following is the WSDL port type specification for 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 for 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 following table summarizes the set of WSDL message definitions that are specific to the MoveItem operation.

Message name

Description

MoveItemSoapIn

The MoveItemSoapIn message is specified in [MS-OXWSCORE] section 3.1.4.7.1.1. It specifies the MoveItem operation request to move one or more Post objects on the server.

The MoveItem element ([MS-OXWSCORE] section 3.1.4.7.2.1) that specifies the XML request MUST contain the following child elements:

ToFolderId ([MS-OXWSCORE] section 2.2.4.16)

ItemIds ([MS-OXWSCORE] section 2.2.4.16)

The ItemIds element MUST contain one or more ItemId child elements ([MS-OXWSCORE] section 2.2.4.31), each one having an Id attribute ([MS-OXWSCORE] section 2.2.4.25) that identifies a Post object.

The ItemIds element MUST NOT contain an OccurrenceId child element ([MS-OXWSCORE] section 2.2.4.31) or a RecurringMasterItemId child element ([MS-OXWSCORE] section 2.2.4.31) in a request to move a Post object.

MoveItemSoapOut

The MoveItemSoapOut message is specified in [MS-OXWSCORE] section 3.1.4.7.1.2. It specifies the server response to the MoveItem operation request.

In the response message, the Items element ([MS-OXWSCDATA] section 2.2.4.43) contains one or more PostItem elements of type PostItemType (section 2.2.4.1).

The client sends a tns:MoveItemSoapIn request WSDL message and the server MUST respond with a tns:MoveItemSoapOut response WSDL message.

Show: