FormsRestService

<back to all web services

ActivityRequest

The following routes are available for this service:
GET/activity/{FormId}
ActivityRequest Parameters:
NameParameterData TypeRequiredDescription
FormIdpathGuidNo
StartDatequeryDateTime?No
EndDatequeryDateTime?No
FormActivity Parameters:
NameParameterData TypeRequiredDescription
StatusMessageformstringNo
SubmissionsformintNo
LatestSubmissionformDateTimeNo
CachedformintNo
LatestCachedformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/ActivityRequest HTTP/1.1 
Host: web2.cendynhub.com 
Content-Type: application/xml
Content-Length: length

<ActivityRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormsRestService.ServiceModel">
  <EndDate>0001-01-01T00:00:00</EndDate>
  <FormId>00000000-0000-0000-0000-000000000000</FormId>
  <StartDate>0001-01-01T00:00:00</StartDate>
</ActivityRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormActivity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cendyn.WebForms">
  <Cached>0</Cached>
  <LatestCached>0001-01-01T00:00:00</LatestCached>
  <LatestSubmission>0001-01-01T00:00:00</LatestSubmission>
  <StatusMessage>String</StatusMessage>
  <Submissions>0</Submissions>
</FormActivity>