Version: 2011.01.25

Krames StayWell External Web Service Documentation

SetDocumentBlocking Method

This Method sets blocks a specific document for the current license. It returns a Success node or an error. Documents are identified by ContentTypeId, ContentId, and IsCustom.

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

<BlockingStatus>
		<Document ContentTypeId="[ContentTypeID]" ContentId="[ContentID]" Status="[Blocked, Allowed]" IsCustom="[true, false]" />
</BlockingStatus>

The IsCustom parameter is optional. The default value of IsCustom is “false”. ContentTypeId, ContentId, and Status are required attributes to complete this method.

Sample Request

http://external.ws.staywell.com/[SiteName]/Blocking.svc/SetDocumentBlocking?xmlrequest=<BlockingStatus><Document ContentTypeId="3" ContentId="87918" Status="Allowed" /></BlockingStatus>

Sample Response XML

<?xml version="1.0" encoding="utf-8" ?> 
<Success xmlns="http://ws.staywell.com" /> 

Or

<?xml version="1.0" encoding="utf-8" ?> 
<Errors>
		<Error>Document Not Found</Error> 
</Errors>