9.5

Table Of Contents
com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext();
rc.documentName = this.DocumentSettings1.documentName.Text;
Example, object
model
rc.responseAsURL = this.DocumentSettings1.responseAsURL.Checked;
rc.useCache = this.DocumentSettings1.useCache.Checked;
rc.bypassFileInfo = this.DocumentSettings1.bypassFileInfo.Checked;
//Create the service and call it QRequestContext object
RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
RequestService
Web service called to process the QuarkXPress Server request. RequestService has a generic method
named processRequest() that takes QRequestContext as an argument and returns QContentData
as the QuarkXPress Server response.
Description
Web serviceType
Processes the request context and returns the result.
processRequest
Methods
DescriptionTypeParameter
Argument passed to
RequestService. Contains settings
QRequestContextrequestCmd
that must be set once per request.
All chained requests are set inside
the request context.
Creates a new session and returns a session ID.
createSession
DescriptionTypeParameter
Timeout for the session in
milliseconds. If no call is executed
Long
timeout
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.
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
closeAlldocs
document, it is logged and the document is marked closed in the internal
cache. No error is returned.
DescriptionTypeParameter
Session whose documents are to be
closed.
String
sessionId
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
closeDoc
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.
DescriptionTypeParameter
44 | A GUIDE TO QUARKXPRESS SERVER 9.5
USING QUARKXPRESS SERVER