This Method returns the list of content identified by the dynamic collection. A dynamic collection differs from a standard collection in that there is no hierarchy of subtopics. A dynamic collection can be thought of as a pre-defined search. All content from the database that match the dynamic collection criteria are included. Dynamic collections are also used to define the content licensed to a client. Dynamic collections select content using a combination of content type, language and MeSH indexing.
Parameter names: XmlRequest
Expects an XML document in this format:
<DynamicCollectionContentsRequest DynamicCollectionId="[CollectionID]" IncludeBlocked="[true, false]" />
The DynamicCollectionId attribute in the DynamicCollectionContentsRequest element is the only required attribute. By default, blocked content will not be included in the response. If IncludeBlocked is specified "true" then blocked content will be included in the response and will have a blocked="true" attribute.
The content in the response will be sorted alphabetically by regular title.
Sample Request
http://external.ws.staywell.com/[SiteName]/Content.svc/GetDynamicCollectionContents?XmlRequest=<DynamicCollectionContentsRequest DynamicCollectionId="1" IncludeBlocked="true"/>
Sample Response
<?xml version="1.0" encoding="utf-8"?>
<ContentList>
<ContentObject ContentTypeId="1" ContentId="2497" IsCustom="false" Blocked="true" ContentObjectType="Document">
<Language Code="en"/>
<RegularTitle>How to Be a Happy Camper -- or Hiker</RegularTitle>
<InvertedTitle/>
<Blurb>
<p>Whether you're a first-time hiker out for an easy walk in the woods or an expert camping in the wilderness, think about safety before you head outdoors.</p>
</Blurb>
<AdditionalTitles>
<AdditionalTitle>PT</AdditionalTitle>
<AdditionalTitle> MS</AdditionalTitle>
<AdditionalTitle> OCS</AdditionalTitle>
</AdditionalTitles>
</ContentObject>
</ContentList>