<Response>
</DeleteDoc>
status - indication of the update process - currently a static string 'OK'
</DeleteDoc>
</Response>
<Response>
</DeleteDoc>
status - indication of the update process - currently a static string 'OK'
</DeleteDoc>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<DocFilter>
count - The count of matching documents
page - The required page
<Results>
<Rows>
docid - the document id of a found document
actionrequired - indicator flag
title - the user defined title of the found document
type* - the style of document
date - the user defined date of the found document
</Rows>
</Results>
</DocFilter>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
</Response>
</DoScan>
scanuuid - The application uniq id for the scanning process.
</DoScan>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<AccessDetails>
<LocationAccess>
<Access>
location - network address that's linked to a role
role - the priverlage assigned by this access
</Access>
...
</LocationAccess>
<UserAccess>
<Access>
user - username that's linked to a role
role - the priverlage assigned by this access
</Access>
...
</UserAccess>
</AccessDetails>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<Audio>
filename - the filename that contains the audio of the selected doc
</Audio>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<DocDetail>
docid - the docid of the selected doc
title - the user defined title of the selected doc
extractedText - the OCR text of the selected doc
docDate - the user defined date of the selected doc
scanDate - the date that the document was added to the application.
type* - the style of document
pages - the number of pages used by the document
actionrequired - a flag indicating if the document has been marked as requiring further action
x - the number of horizontal pizel required by the document
y - the number of lines required by the document
<Taqs>
<tag>
tagname - the name of the assigned tag
</tag>
...
</Tags>
</DocDetail>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<ScannerList>
<Devices>
<Device>
<Formats>
format - the format that a scan can be performed in. currently only fixed string 'grey scale'
...
</Formats>
type - sane text that describes the scanning device (eg 'flat bed')
vendor - sane text that names the scanning device
model - sane text that names the scanning device
host - text representation of the location of the scanner
name - the machine id for the scanning device
default - the default resolution
min - the minimum resolution allowed by the scanning decice
max - the maximum resolution allowed by the scanning device
</Device>
...
</Devices>
</ScannerList>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<ScanningProgress>
status* - the current action being done by the system
value - representation of how far along the action being done, is.
</ScanningProgress>
</Response>
<Response>
</MoveTag>
status - indication of the update process - currently a static string 'OK'
</MoveTag>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<NextPageReady>
result - indication if the next page command was accepted, currently a fixed string 'ok'
</NextPageReady>
</Response>
<?xml version='1.0' encoding='iso-8859-1'?>
<Response>
<UpdateDocDetails>
status - indication of the update process - currently a static string 'OK'
</UpdateDocDetails>
</Response>
Any of the API calls can be make invoken by making an HTTP POST request to the "/opendias/dynamic" entry point, over the port that the application is running on.
Usually this would be done via an AJAX call on a webpage, but could just as easily be make from any application. eg, this is a call to invoke a new scanning operation from bash.
telnet localhost 8988 <<__endjob POST /opendias/dynamic HTTP/1.1 Host: localhost:8988 User-Agent: Mozilla/5.0 Accept: application/xml, text/xml, */* Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest Referer: http://localhost:8988/opendias/acquire.html Content-Length: 100 Pragma: no-cache Cache-Control: no-cache action=doScan&deviceid=test%3A0&format=Grey+Scale&pages=1&resolution=300&ocr=-&pagelength=100 __endjob
Any of the API calls could return an error message. Fontends should check for this error and take appropriate action. Outputs:
<?xml version='1.0' encoding='iso-8859-1'?> <Response> error - a message describing the problem </Response>