2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 191
Add Reference dialog box
Get a reference to the RequestService:3.
RequestService requestService = new RequestService();
requestService.Url =
“http://<server>:<port>/qxpsm/services/RequestService”;
Get a reference to the AdminService:4.
AdminService adminService = new AdminService();
adminService.Url =
“http://<server>:<port>/qxpsm/services/AdminService”;
Use these two services to make requests.5.
For sample code, see the following topics.
If QuarkXPress Server Manager is running over SSL,the client-side application must
also use SSL. Define a server certificate validation callback during application
initialization using code like the following:
Imports System.Net
Imports System.Net.Security
Imports System.Security.Cryptography.X5 09Certific ates
...
ServicePointManager.ServerCertificateValidationCallback +=
delegate(
object senders,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return true;
}
.NET sample: Deconstructing a project
QRequestContext qRequestContext = new QRequestContext();
qRequestContext.documentName = “MyDoc.qxp”;
// Create XML Request
XMLRequest xmlRequest = new XMLRequest();
qRequestContext.request = xmlRequest;
// Get reference to RequestService