8.0

Table Of Contents
other valid path.
Logs
If the project is successfully rendered, a transaction success message is written to
the QuarkXPress Server Transaction Log file. The transaction entry consists of the
date and time of the request, the render type, the project name, the type of
response produced by the server, the size of the response returned in bytes, and
the client IP address.
The following is a sample of a transaction entry:
11/16/2005 15:41:42 - saveas/5mb.qxp - Type: - Size: 28 - Client: 127.0.0.1
If an alert is displayed, an error message is written to the QuarkXPress Server
error log. The transaction entry in the 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 entry:
11/16/2005 15:42:12 - Error - Error Code: 10371 - The file path is invalid.
Example GET
URL
http://localhost:8080/saveas/pdf/sample.qxp?newname=Customer1&path=HDD:te
mp&savetopool=true
This produces a PDF called Customer1 in the folder HDD:temp and also in the
document pool of QuarkXPress Server. It replaces any existing project named
Customer1 in the same location.
Example, Object
Model
Request Object Name : SaveAsRequest
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName = this.DocumentSettings1.documentName.Text;
//STEP 2(SPECIFIC TO REQUESTS):Create the Save as request and chain it to
the document context
SaveAsRequest saveasreq = new SaveAsRequest();
saveasreq.newName = this.newname.Text;
if((this.path.Text != null) && (!this.path.Text.Equals("")))
saveasreq.newFilePath = this.path.Text;
saveasreq.replaceFile = this.replace.Checked.ToString();
saveasreq.saveToPool = this.savetopool.Checked.ToString();
rc.request = saveasreq;
//Create the service and call it with QRequestContext object
QManagerSDKSvcService svc = new QManagerSDKSvcService();
sdk.QContentData qc = svc.processRequest(rc);
Notes
The default value of savetopool is true, meaning "Save the project in the
document pool." However, if you specify a value for the path parameter,
this default value is overridden and changed to false. In this case, if you
want the project saved to the document pool, you must explicitly set
savetopool to true
.
If you have set a watched folder for PDF/PS, then the file is saved in the
watched folder instead of the path specified in the URL.
Page 93