8.5

Table Of Contents
http://QXPServer8:8080/construct/
project1.qxp?modify=file:sample.xml
Example GET
URL
<?xml version="1.0" encoding="UTF-8"?>
<PROJECT JOBJACKET="C:\XML\New Job Jacket 3.xml"
Example XML
JOBTICKET="Default Job Ticket"
PROJECTNAME="project1.qxp">
<LAYOUT>
<ID NAME="Layout 1"/>
<SPREAD>
<ID UID="1"/>
<PAGE>
<ID UID="1"/>
</PAGE>
</SPREAD>
</LAYOUT>
</PROJECT>
A new QuarkXPress project.Response
HTTP Error #404File 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. For example, this error can occur if an
image or text file file mentioned in a <CONTENT> element is invalid or
missing.
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 do 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
8/3/2005 11:27:42 jpeg/construct/table.qxp Type: image/jpeg Size: 31715 Client: 127.0.0.1
If an alert is displayed, an error message is written to the QuarkXPress Server error log. The following
is a sample of the error log entry:
8/10/2005 10:39:07 Error Error Code: 10339 The specified file failed to load in the picture
box.
Request Object Names:
XMLRequest
ConstructRequest
Example, object
model
ConstructFileRequest
ConstructStreamRequest
To construct a new QuarkXPress project by editing an existing document, first deconstruct a
QuarkXPress project using code like the following:
XMLRequest dcnstrq = new XMLRequest();
rc.request = dcnstrq;
98 | QXP SERVER 8.5 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE