2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 201
It also has an array of dynamic parameters, which can be used to parameterize the
request. For example:
NameValueParam param = new NameValueParam();
param.setParamName(“scale”);
param.setTextValue(“1”);
requestParameters.setParams(new NameVal ueParam[]{ param });
It can also be executed using the QuarkXPress Server Manager Web service API. For
example:
QRequestContext qRequestContext = new QRequestContext();
qRequestContext.setRequest(requestParameters);
Sample applications
The topics below describe the sample applications distributed with QuarkXPress
Server.
Sample applications: QXP Server Manager
These sample applications are available in the QuarkXPress Server installation
package.
ASP.NET samples
This sample application consists of Web pages that demonstrate different ways the
object model can be used to post QuarkXPress Server requests for various
operations. To use this application:
Create a virtual directory (for example, “ClientSDKSamplesSite”) in IIS.
1.
Copy the sample from [QuarkXPress Server Manager application2.
folder]\XDK\samples\asp.net\clientsdksamples and set the home path
of the Web demo to the virtual directory.
Set the endpoint address for Web services calls in the “web.config” file like so:
3.
configuration - >appSettings - >add
key=”com.quark.qxpsm.RequestService” va lue= “End Point
Address”
Restart IIS.4.
In a browser, enter the following URL: http://<IIS Server5.
Name>:<Port>/ClientSDKSamplesSite/Index.htm
C# samples
These samples show how to use C# to take advantage of bullets and numbering,
callouts, and conditional styles with QuarkXPress Server requests transmitted via
the QuarkXPress Server Manager Web services interface. They use .NET Web service
stubs provided by the QuarkXPress Server Manager SDK.
The “AddFileRequest” sample shows how to make servlet requests to QuarkXPress
Server Manager, instead of using QuarkXPress Server Manager Web service stubs.
Web services use SOAP to pass data, and SOAP is not designed to transfer large