10.2.1

Table Of Contents
Takes a raw XML representation of a project as a string and returns an
object model representing that project, with Project as the root class.
getXPressDOMFromXML
QRequestContext rc = new QRequestContext();
rc.documentName = "test.qxp";
Example,
object model
rc.responseAsURL = false;
JPEGRenderRequest jpegRequest = new JPEGRenderRequest();
rc.request = jpegRequest;
RequestService svc = new RequestService();
QContextData response = svc.processRequest(rc);
QRequest
Base class for all request objects (such as PDFRenderRequest). All request objects share some
common data members, which are described below.
Description
Web service data objectType
DescriptionTypes
NameMembers
QuarkXPress Server request that includes instances of request
objects chained together.
QRequestrequest
RequestParameters
Generic class for executing any request and for adding dynamic properties to a request.Description
Web service data objectType
DescriptionType
NameMembers
Namespace of the request (for example,
jpeg).
String
requestNamespace
Parameter array for the specified request (for
example, jpegquality).
NameValueParam[]params
You can use this class to send any request for which a specific class does not exist. When this
request exists in the chain, its namespace is concatenated with the namespaces of other
requests. That means the namespace provided here can be null.
Additional
comments
The parameters of this class can be used to parameterize a request being sent to the server.
QRequestContext rc = new QRequestContext();
RequestParameters request = new RequestParameters();
Example, object
model
request.setRequestNamespace("jpeg");
rc.setRequest = request;
NameValueParam p1 = new NameValueParam();
p1.setParamName = "jpegquality";
p1.setTextValue = "4";
request.setParams(new NameValueParam[]{p1});
NameValueParam
Generic class for adding dynamic properties to a request. This class is specifically for requests that
take a box name/id as the parameter name and the box content as the parameter value.
Description
Web service data objectType
DescriptionType
NameMembers
A GUIDE TO QUARKXPRESS SERVER 10.2.1 | 47
USING QUARKXPRESS SERVER