GetContent Operation

 

Client Declaration

Retrieves content data from a content-carrying Content Engine object.

Client applications using the 4.0 WSDL can retrieve content using a GetContent request instead of using the Content pseudo-property in conjunction with a GetObjects request. With a GetContent request, an application has the advantage of being able to retrieve portions of the content and at a specific offset.

 

Request

A GetContentRequest element, which specifies the following:

A typical structure of a GetContent request is as follows. Elements that are derived from their base element are in parenthesis:

GetContentRequest GetContentRequest
     ContentRequestType ContentRequest[0]
          ElementSpecificationType ElementSpecification
          (ObjectSpecification)ObjectReference SourceSpecification
     ContentRequestType ContentRequest[1]
               .
               .

 

Response

An array of concrete subtypes of the abstract ContentResponseType element, each of which matches a corresponding ContentRequestType element in the GetContent response. Depending on the type of object returned, one of the following ContentResponseType subtypes is returned for each item in the array:

A typical structure of a GetContent response is as follows. Elements that are derived from their base element are in parenthesis:

GetContentResponse GetContentResponse

     (ContentElementResponse)ContentResponseType ContentResponseTypeArray[0]
          ElementSpecificationType ElementSpecification
          ObjectReference SourceSpecification
          (InlineContent)ContentType Content[0]
          (InlineContent)ContentType Content[1]
                    .
                    .

     (ContentErrorResponse)ContentResponseType ContentResponseTypeArray[1]
          ErrorStackType ErrorStack
               ErrorNameType ErrorName
               ErrorRecordType ErrorRecord[0]
                    DiagnosticType Diagnostic[0]
                    DiagnosticType Diagnostic[1]			
               ErrorRecordType ErrorRecord[1]
                    DiagnosticType Diagnostic[0]
     (ContentElementResponse)ContentResponseType ContentResponseTypeArray[2]
               .
               .

 

XML Schema

<operation name="GetContent">
   <input message="tns:GetContentRequest"/>
   <output message="tns:GetContentResponse"/>
   <fault message="tns:FaultResponse" name="GeneralError"/>
</operation>