2016

Table Of Contents
Add Reference dialog box
3
Get a reference to the RequestService:
RequestService requestService = new RequestService();
requestService.Url = "http://<server>:<port>/qxpsm/services/RequestService";
4
Get a reference to the AdminService:
AdminService adminService = new AdminService();
adminService.Url = "http://<server>:<port>/qxpsm/services/AdminService";
5
Use these two services to make requests.
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.X509Certificates
...
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
RequestService service = new RequestService();
service.Url = "http://[server]:[port]/qxpsm/services/RequestService";
// Process request using RequestService
QContentData data = service.processRequest(qRequestContext);
String deconstructXml = data.textData;
170 | A GUIDE TO QUARKXPRESS SERVER 2016
USING QUARKXPRESS SERVER