public UpdateContentTypesXmlDocumentResponseUpdateContentTypesXmlDocumentResult UpdateContentTypesXmlDocument(string listName, UpdateContentTypesXmlDocumentNewDocument newDocument)
{
this.Site.Assert.IsNotNull(this.listsProxy, "The Proxy instance should not be NULL. If assert failed, the adapter need to be initialized");
UpdateContentTypesXmlDocumentResponseUpdateContentTypesXmlDocumentResult result = null;
try
{
result = this.listsProxy.UpdateContentTypesXmlDocument(listName, newDocument);
// Verify the requirements of the UpdateContentTypesXmlDocument operation.
this.VerifyUpdateContentTypesXmlDocumentOperation(result);
// Verify the requirements of the transport.
this.VerifyTransportRequirements();
}
catch (XmlSchemaValidationException exp)
{
// Log the errors and warnings
this.LogSchemaValidationErrors();
this.Site.Assert.Fail(exp.Message);
}
catch (SoapException)
{
this.VerifySoapExceptionFault();
throw;
}
return result;
}