2015

Table Of Contents
parameter of this API is a pointer to a request handler function implemented in
QuarkXPress Server XTensions software. The second parameter is a namespace string
that identifies the request. When a user submits a request that has the same namespace
string as a suffix to the request URL, QuarkXPress Server calls the request handler
function with all the user-specified parameters in the ServerRequest structure. The
request handler function then processes the request and submits the reply in a
ServerReply structure, which QuarkXPress Server communicates back to the user
agent.
Addfile
Use the addfile request handler to put a document or image file in the document
pool. An addfile request is always a POST request because it uses binary content.
If you send an addfile request to QuarkXPress Server Manager using HTTP or the
Web services interface while the common doc pool switch is set to off in the
QuarkXPress Server Manager client, the file is uploaded to all registered
QuarkXPress Server instances. If the common doc pool is enabled, the file can be
uploaded to any one registered QuarkXPress server instance.
addfile
Namespace
Contains the actual binary content of the file to be
uploaded. This can be a QuarkXPress file, a Word file, a
Binary file or
MIME-type file
uploadfile
Parameters
text file, or a file with a MIME-type such as EPS, JPEG,
PNG, or PICT.
The message "File upload completed."Response
HTTP Error #404The file system
document pool
is not enabled.
Alerts
This alert displays if you attempt to upload a document when the file system
document pool is not enabled.
What to do: Check Enable File System Document Pool in the Server
Configuration dialog box.
HTTP Error #401Incorrect
administration
This alert displays if you specify an invalid administrator user name and
password.
realm user
name and
password.
What to do: Use the user name and password set in theQuarkXPress Server
Manager client Server Configuration dialog box.
HTTP Error #500Cannot find
required volume
or folder
QuarkXPress Server Error #120
This alert displays if you attempt to upload a document that is in a subfolder
that does not exist in the document pool while Generate Hierarchy on
Document Upload is unchecked in the Server Configuration dialog box.
What to do: Check Generate Hierarchy on Document Upload in the Server
Configuration dialog box.
See Understanding loggingLogs
To post a binary file in the root folder:
http://localhost:8080/addfile/abc.qxp
Example GET
URL
To post a binary file in a subfolder:
http://localhost:8080/addfile/sub1/abc.qxp
A GUIDE TO QUARKXPRESS SERVER 2015 | 145
USING QUARKXPRESS SERVER