Export (0) Print
Expand All

3.1.4.2 CreateItem

The CreateItem operation creates email messages.

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

<wsdl:operation name="CreateItem">
     <wsdl:input message="tns:CreateItemSoapIn" />
     <wsdl:output message="tns:CreateItemSoapOut" />
</wsdl:operation>

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

<wsdl:operation name="CreateItem">
  <soap:operation soapAction="http://schemas.microsoft.com/exchange/services/2006/messages/CreateItem" />
  <wsdl:input>
    <soap:header message="tns:CreateItemSoapIn" part="Impersonation" use="literal"/>
    <soap:header message="tns:CreateItemSoapIn" part="MailboxCulture" use="literal"/>
    <soap:header message="tns:CreateItemSoapIn" part="RequestVersion" use="literal"/>
    <soap:header message="tns:CreateItemSoapIn" part="TimeZoneContext" use="literal"/>
    <soap:body parts="request" use="literal" />
  </wsdl:input>
  <wsdl:output>
    <soap:body parts="CreateItemResult" use="literal" />
    <soap:header message="tns:CreateItemSoapOut" part="ServerVersion" use="literal"/>
  </wsdl:output>
</wsdl:operation>

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

If the CreateItemWSDL operation request is successful, the server returns a CreateItemResponse element, as specified in [MS-OXWSCORE] section 3.1.4.2.2.2, with the ResponseClass attribute, as specified in [MS-OXWSCDATA] section 2.2.4.57, of the CreateItemResponseMessage 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 CreateItemResponseMessage element is set to "NoError".

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

For more information, see CreateItem as described in [MS-OXWSCORE] section 3.1.4.2.

Show:
© 2015 Microsoft