8.1

Table Of Contents
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
Document to be closed.String
docName
Session in which document was
opened.
String
sessionId
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.
closeSession
DescriptionTypeParameter
Session to be closed.String
sessionId
Gets the internal error object. If you receive an exception from Web services,
and that exception was caused by QuarkXPress Server or Manager (rather than
getErrorObject
a runtime exception such as a null pointer exception), you can call this method
and pass a stringified form of the exception. The method returns an error
object which has easy-to-use methods for getting the error code, getting the
error message, and so forth.
Gets all the open documents in the session. If the session does not exist, an
error is returned.
getOpenDocs
DescriptionTypeParameter
Session whose open documents are
sought.
String
sessionId
Gets all open sessions.
getOpenSessions
Gets QuarkXPress Server preferences.
getPreferences
Sets QuarkXPress Server preferences.
setPreferences
Creates a DOM for the specified document.
getXPressDOM
20 | QXP SERVER 8.1 WEB INTEGRATION GUIDE
GETTING STARTED