8.1

Table Of Contents
Lets you supply XML that matches the placeholders in the
project.
XMLthexmldoc
Render modifier
parameters
Lets you supply XML that matches the placeholders in the
project. This parameter creates a new layout containing the
imported and formatted XML.
XMLpaginate
Lets you specify a layout by name or ID. The first layout is
Layout 1.
String
layout
PPML output.Response
HTTP Error #406The renderer for this
image type has no
Alerts
This alert displays if you submit a render request with the pages or box
parameter.
way of rendering the
desired objects.
This alert displays if you specify a nonexistent output style.This Output Style
does not exist.
This alert displays if you specify an output style that is incompatible with
this render type.
This Output Style
cannot be used with
this render type.
HTTP Error #500The file path is
invalid.
This alert displays if you specify an invalid path parameter.
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 10:03:30 ppml/sample.qxp Type: application/postscript Size: 2654464 Client:
127.0.0.1
If any alert is displayed, an error message is written to the QuarkXPress Server Error Log file. The
transaction entry in an error log contains the date and time of the request, the error code, and the
error message. The following is a sample of an error log transaction entry:
8/3/2005 11:27:24 Error Error Code: 10008 The renderer for this image type has no way
of rendering the desired objects.
http://localhost:8080/ppml/sample.qxp?
paginate=file:MacintoshHD:file.xml
&path=C:\abc&includefont=true
Example, GET
URL
Request object name: PPMLRenderRequest
//STEP1: Create the QuarkXPress Server Request
//Context and set the nescessary properties
Example, object
model
sdk.QRequestContext requestCtx = new sdk.QRequestContext();
Boolean responseAsURL = false;
requestCtx.setDocumentName(docName);
//STEP 2(SPECIFIC TO REQUESTS):
//Create the PPML renderer
//request and embed it in the request context.
PPMLRenderRequest ppmlreq = new PPMLRenderRequest();
ppmlreq.setExportPath(request.getParameter("path"));
ppmlreq.setLayout(request.getParameter("layout"));
ppmlreq.setOutputStyle(
request.getParameter("outputstyle"));
requestCtx.setRequest(ppmlreq);
50 | QXP SERVER 8.1 WEB INTEGRATION GUIDE
USING THE WEB INTERFACE