8.0

Table Of Contents
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/5/2005 18:01:59 - Error - Error Code: 10343 - A locked Layer cannot be
manipulated.
Example GET
URL
On Windows, the URL format is:
http://localhost:8080/Sample.qxp?modify=file:c:\file.xml
On MAC OS, the URL format is:
http://localhost:8080/Sample.qxp?modify=file:HDD:file.xml
To use an XML string in the URL:
http://localhost:8080/sample.qxp?modify=<xml-string>
where xml-string
consists of valid XML of image properties. For example:
http://localhost:8080/sample.qxp?modify=
<PROJECT><LAYOUT><ID UID="Layout1"/><SPREAD><ID UID="1"/>
<BOXBOXTYPE="CT_TEXT"><ID NAME="TREES"/>
<CONTENT>file:c:\docs\file1.jpg</CONTENT>
</BOX></SPREAD></LAYOUT></PROJECT>
Path Parameter
http://localhost:8080/Sample.qxp?textboxname@dataimport=file:c:\file.txt
http://localhost:8080/Sample.qxp?pictureboxname@dataimport=c:\file.jpg
Text Parameter
http://localhost:8080/Sample.qxp?textboxname@dataimport=Newdata
Stylesheets
http://localhost:8080/Documentname?textboxname@dataimport=
file:c:\file.doc&textboxnameincludestylesheets@dataimport=yes
Convert quotes
http://localhost:8080/Documentname?textboxname@dataimport=
file:c:\file.doc&textboxnameconvertquotes@dataimport=yes
Example, Object
Model
Request Object Names:
ModifierRequest
ModifierStreamRequest
Project
Box
Content
Layout
ModifierFileRequest: member contents is used to set the file path or send
the XML itself.
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 data import request and
Page 141