Version: 2011.01.25

Krames StayWell External Web Service Documentation

GetDynamicCollectionCriteria Method

This Method returns a SearchCriteria element representing the components of a single Dynamic Collection. Currently the components of a Dynamic Collection are ContentTypeId, LanguageCode, and MeSH codes. The SearchCriteria can then be passed directly back to the web service, as is or with additional parameters added, in a DocumentSearch call which will result in a DocumentList that matches the contents of the DynamicCollection.

Parameter names: XMLRequest
Expects an XML document in this format:

<DynamicCollection DynamicCollectionId="[CollectionID]" IncludeBlocked="[true, false]" />

The DynamicCollectionId attribute is the only required attribute. If IncludeBlocked is specified, this attribute will be passed back in the SearchCriteria as-is.

Sample Request

http://external.ws.staywell.com/[SiteName]/Collections.svc/GetDynamicCollectionCriteria?XmlRequest=<DynamicCollection DynamicCollectionId="12" IncludeBlocked="true"/>

Sample Response XML

<?xml version="1.0" encoding="utf-8"?>
<SearchCriteria IncludeBlocked="true" xmlns="http://ws.staywell.com">
		<ContentTypes>
			<ContentType ContentTypeId="6" /> 
	</ContentTypes>
	<Language Code="en" /> 
		<MeSHList>
		<MeSH code="D005081" /> 
		<MeSH code="D010809" /> 
		<MeSH code="D015444" /> 
		<MeSH code="D019876" /> 
			<MeSH code="D020446" /> 
		</MeSHList>
</SearchCriteria>