2020

Table Of Contents
USING QUARKXPRESS SERVER
Methods
processRequest
Processes the request context and returns the result.
Parameter Type Description
requestCmd
QRequestCont
ext
Argument passed to
RequestService. Contains
settings that must be set
once per request. All chained
requests are set inside the
request context.
createSession
Creates a new session and returns a session ID.
Parameter Type Description
timeout Long
Timeout for the session in
milliseconds. If no call is
executed in that time,
session is expired and all the
open documents in that
session are closed without
saving. If 0 is passed as value
of timeout, default timeout
is used. If a negative value is
passed as timeout, the
session never expires.
closeAlldocs
Closes all open documents in the session without saving them.
If the session does not exist, an error is returned. If an error
occurs while closing the document, it is logged and the
document is marked closed in the internal cache. No error is
returned.
Parameter Type Description
sessionId String
Session whose documents
are to be closed.
closeDoc
Closes the specified document without saving it. If the session
does not exist, an error is returned. If the document is not
open, and error is returned. If the document is open in another
session, an error is returned. If an error occurs while closing the
document, it is logged and the document is marked closed in
the internal cache. No error is returned.
Parameter Type Description
docName String Document to be closed.
sessionId String
Session in which document
was opened.
closeSession
Closes the specified session. If the session does not exist, an
error is returned. If any documents are still open in the session,
an error is returned.
Parameter Type Description
sessionId String Session to be closed.
getOpenDocs Gets all the open documents in the session. If the session does
A GUIDE TO QUARKXPRESS SERVER 2020 | 41