ContentData Element

System.Object
  PropertyType
    ModifiablePropertyType
      ContentData
Client Declaration
  public class ContentData
Represents the content data associated with a content-carrying Content Engine object via the Content pseudo-property of a Content Engine ContentTransfer object. The Content pseudo-property is not a real Content Engine property; rather it is a Content Engine Web Service construct for allowing content data to be retrieved and uploaded.

When the Content pseudo-property is returned, it is sent as an attachment following the main body of the response. Any errors that occur while the content data is being read from the repository are detected in the server. However, once the attachment has begun to be transmitted, the HTTP protocol does not provide a way to reliably signal if an error has occurred on the sending end. The result is that a client can potentially falsely interpret that it has received all of the content data when only the beginning of the content has actually been transmitted. To prevent this situation from occurring, clients should either:

  • Verify that the size of the content data actually received using the Content pseudo-property matches the value of the totalSize attribute of the ContentElementResponse element.
  • Use the stream-based GetContent operation instead of the Content pseudo-property to retrieve content data.

Element Structure

Elements
  • ContentType Value: [request][response] Required element specifying the content data of a content-carrying object. Depending on the manner of content transfer, Value resolves to one of the following concrete subtypes:

Base Element Inheritance

Attributes
  • String propertyId:
    • [request] Required expression identifying a Content Engine property. This attribute can specify either a symbolic name or a GUID.
    • [response] Required expression specifying the symbolic name of a Content Engine property.
  • Boolean settable: [response] Optional expression specifying whether the specified Content Engine property is settable by the user (true) or not (false). If true, this attribute's value is "1"; otherwise, this attribute is omitted in the response.
Attributes Specific to .NET Clients
  • Boolean settableSpecified: Optional expression specifying whether settable has a value (true) or not (false).

XML Schema

<xsd:complexType name="ContentData">
   <xsd:complexContent>
      <xsd:extension base="ModifiablePropertyType">
         <xsd:sequence>
            <xsd:element name="Value" type="ContentType"/>
         </xsd:sequence>
      </xsd:extension>
   </xsd:complexContent>
</xsd:complexType>