8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
If an alert is displayed, an error message is written to the QuarkXPress Server
error log file. The following is a sample of an error log entry:
8/3/2005 20:08:45 - Error - Error Code: 10100 - The file system document pool
is not enabled.
Example GET
URL
To post a binary file in the root folder
http://localhost:8080/addfile/abc.qxp
To post a binary file in a subfolder
http://localhost:8080/addfile/sub1/abc.qxp
Example, Object
Model
Request Object Name : AddFileRequest
//STEP 1 (COMMON FOR ALL REQUESTS):
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName = this.DocumentSettings1.documentName.Text;
Stream theStream = uplTheFile.PostedFile.InputStream;
long length = theStream.Length;
Byte[] Buffer = new Byte[length];
const int BUFFER_SIZE = 10000;
int nBytesRead = 0,iCount = 0;
long remainingBytes = length - BUFFER_SIZE;
if(remainingBytes > BUFFER_SIZE)
{
nBytesRead = theStream.Read(Buffer,iCount *
BUFFER_SIZE,BUFFER_SIZE);
while(0 != nBytesRead)
{
iCount++;
remainingBytes = length - (iCount * BUFFER_SIZE);
if(remainingBytes > BUFFER_SIZE)
nBytesRead = theStream.Read(Buffer,iCount *
BUFFER_SIZE,BUFFER_SIZE);
else
{
nBytesRead = theStream.Read(Buffer,iCount *
BUFFER_SIZE,(int)remainingBytes);
break;
}
}
}
else
nBytesRead = theStream.Read(Buffer,iCount *
BUFFER_SIZE,(int)remainingBytes);
AddFileRequest addfilereq = new AddFileRequest();
addfilereq.fileData = Buffer;
rc.request = addfilereq;
//Create the service and call it with QRequestContext object
QManagerSDKSvcService svc = new QManagerSDKSvcService();
QContentData qc = svc.processRequest(rc);
Note: The object model uses SOAP to transfer data. SOAP encoding is not the
most efficient way to transfer binary data. If you have to add a file using
Page 185