3.1.4.29 UpdateContentTypeXmlDocument

The UpdateContentTypeXmlDocument operation<85> is used to update the XML document of a list content type.

 <wsdl:operation name="UpdateContentTypeXmlDocument">
     <wsdl:input message="UpdateContentTypeXmlDocumentSoapIn" />
     <wsdl:output message="UpdateContentTypeXmlDocumentSoapOut" />
 </wsdl:operation>

The protocol client sends an UpdateContentTypeXmlDocumentSoapIn request message (section 3.1.4.29.1.1) and the protocol server responds with an UpdateContentTypeXmlDocumentSoapOut response message (section 3.1.4.29.1.2), as follows:

  1. If the specified listName is a valid GUID and corresponds to the identification of a list on the site, use that list.

  2. If the specified listName is not a valid GUID or does not correspond to the identification of a list on the site, check if the listName corresponds to the list title of a list on the site and if so, use that list.

  3. If listName does not correspond to a list from either of these checks, the protocol server SHOULD<86> return a SOAP fault with error code 0x82000006. This indicates that the list does not exist or might have been deleted by another user.

  4. If the content type specified by the contentTypeId is not found, the protocol server MUST return a SOAP fault. There is no error code for this fault.

  5. If an XML document with the same namespace URI [RFC2396] already exists, it MUST be replaced by the new XML document. Otherwise, the new XML document MUST be added to the content type XML document.

  6. If no SOAP fault is thrown, the protocol server MUST return a success UpdateContentTypeXmlDocumentResult element (section 3.1.4.29.2.2).