Client Declaration
public ContentResponseType[] GetContent(GetContentRequest GetContentRequest)
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.
A GetContentRequest
element, which specifies the following:
validateOnly
attribute, which specifies whether the content data should be retrieved or only validated. ContentRequestType
elements, each of 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
GetContentRequestContentRequestType
ContentRequest[0]ElementSpecificationType
ElementSpecification (ObjectSpecification
)ObjectReference
SourceSpecificationContentRequestType
ContentRequest[1] . .
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:
ContentElementResponse
: Returns the streaming content data of a single content element belonging to a content-carrying object. This element specifies the following:
ContentErrorResponse
: Returns an error that has occurred while retrieving content data. This element specifies the following:
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
ElementSpecificationObjectReference
SourceSpecification (InlineContent
)ContentType
Content[0] (InlineContent
)ContentType
Content[1] . . (ContentErrorResponse
)ContentResponseType
ContentResponseTypeArray[1]ErrorStackType
ErrorStackErrorNameType
ErrorNameErrorRecordType
ErrorRecord[0]DiagnosticType
Diagnostic[0]DiagnosticType
Diagnostic[1]ErrorRecordType
ErrorRecord[1]DiagnosticType
Diagnostic[0] (ContentElementResponse
)ContentResponseType
ContentResponseTypeArray[2] . .
<operation name="GetContent"> <input message="tns:GetContentRequest"/> <output message="tns:GetContentResponse"/> <fault message="tns:FaultResponse" name="GeneralError"/> </operation>