Export (0) Print
Expand All

3.1.4.1 CopyItem

The CopyItem operation copies email messages on the server.

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

<wsdl:operation name="CopyItem">
    <wsdl:input message="tns:CopyItemSoapIn" />
    <wsdl:output message="tns:CopyItemSoapOut" />
</wsdl:operation>

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

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

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

If the CopyItemWSDL operation request is successful, the server returns a CopyItemResponse element, as specified in [MS-OXWSCORE] section 3.1.4.1.2.2, with the ResponseClass attribute, as specified in [MS-OXWSCDATA] section 2.2.4.57, of the CopyItemResponseMessage element, as specified in [MS-OXWSCDATA] section 2.2.4.10, set to "Success". The ResponseCode element, as specified in [MS-OXWSCDATA] section 2.2.4.57, of the CopyItemResponseMessage element is set to "NoError".

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

For more information, see CopyItem as described in [MS-OXWSCORE] section 3.1.4.1.

Show:
© 2014 Microsoft