8.5

Table Of Contents
A preview of the QuarkXPress project with new box created in specified position.Response
HTTP Error #404
File not found.Alerts
QuarkXPress Server Error #43
This alert displays if you specify an invalid XML file or request a document
that is not in the document pool.
HTTP Error #404Bad filename/
pathname.
QuarkXPress Server Error #37
This alert displays if you specify an invalid file name or path.
HTTP Error #500The XML document
is not valid or well
formed.
This alert displays if the XML you supply is not well-formed or does not
adhere to the Modifier DTD.
HTTP Error #500The XML document
contains an invalid
tag value.
This alert displays if you supply an invalid value in the XML.
If the request succeeds, a transaction success message is written to the QuarkXPress Server transaction
log file. This message includes the date, time, request type, project name, response type, response
size in bytes, and client IP address. For example:
Logs
The following is a sample of a transaction entry: 8/3/2005 11:27:42 jpeg/sample.qxp Type:
image/jpeg Size: 31715 Client: 127.0.0.1
If an alert displays, an error message is written to the QuarkXPress Server error log file. For example:
4/12/2007 14:51:50 Error Error Code: 10207 The XML document is not
valid or well formed. Project: /table.qxp
When QuarkXPress Server is running on Windows, use a URL like the following:
http://localhost:8080/sample.qxp?modify=
file:C:\createBox.xml
Example, GET
URL
When QuarkXPress Server is running on Mac OS, use a URL like the following:
http://localhost:8080/sample.qxp?modify=
file:MacHD:xml:createBox.xml
You can also supply a string that consists of valid XML commands. For example:
http://localhost:8080/sample.qxp?modify=<PROJECT><LAYOUT>
<ID UID="layout 1"/><SPREAD><ID UID="1"/><ID/>
<BOX OPERATION="CREATE" BOXTYPE="CT_PICT"><ID NAME="PRODUCTS"/>
<GEOMETRY PAGE="2" SHAPE="SH_RECT"><POSITION><TOP>5</TOP>
<LEFT>5</LEFT><BOTTOM>10</BOTTOM><RIGHT>10</RIGHT></POSITION>
</GEOMETRY></BOX></SPREAD></LAYOUT></PROJECT>
To create a new box, use code like the following:
Spread spread = new Spread();
Box box = new Box();
Example, object
model
box.name = "textbox1";
Geometry geometry = new Geometry();
Position position = new Position();
position.top = "110";
position.left = "89";
position.bottom = "220";
position.right = "300";
geometry.position = position;
geometry.shape = "SH_RECT";
geometry.page = "1";
QXP SERVER 8.5 WEB INTEGRATION GUIDE | 79
USING THE WEB INTERFACE