XML-RPC API of the Docma batch processing server
================================================

silva2word(String username, String password, String email,
           String frontCategory, String frontName, Binary xml, Any description)
Returns: Integer jobID
Description: Given XML silva document, open DOC file specified by category and name,
append converted document and email to user. jobID can be used with getDescription()
and getJobStatus() functions.


word2silva(String username, String password, Binary wordFile, String email,
           String objectURL, Any description)
Returns: Tuple (Integer jobID, Integer storageID)
Description: Convert Word document to XML, and keep in storage. When done, email
user given url with storageID tacked on, and this URL is supposed to fetch
result into Silva using getWord2SilvaResult().


getDescription(Integer jobID)
Description: return description of given job, as passed to word2silva() or
silva2word().


getWord2SilvaResult(String username, String password, Integer storageID)
Returns: Binary xml, utf-8 encoded unicode string
Description: Get result of word2silva() conversion.


getWord2SilvaDescriptions()
Returns: List of tuples (Integer storageID, Any description)
Description: List of storageID/description pairs of word2silva results
currently being stored.


delWord2SilvaResult(String username, String password, Integer storageID)
Description: Delete result of word2silva() conversion.


getEstimatedRuntime(String type, Integer size)
Returns: Integer seconds.
Description: Given "word2silva" or "silva2word" and size in kb, return how
long a newly added job with given parameters would take to run.


getQueueLength()
Returns: Integer length.
Description: Returns how many items are in the queue.


getJobStatus(Integer jobID)
Returns: String status.
Description: Returns 'queued', 'processing' or 'notInQueue'.


getIdentIndex(Integer jobID)
Returns: Integer.
Description: Returns how many items are in the queue before the job.


getProcessingIdent()
Returns: Integer jobID.
Description: Return jobID of currently running job.


getIdentOwner(Integer jobID)
Returns: String username.
Description: returns username of owner of given job.
