2020

Table Of Contents
USING QUARKXPRESS SERVER
Extensibility: Includes the Extensibility tool, for extending QuarkXPress Server
Manager. For more information, see “Extending QuarkXPress Manager.”
Samples: Includes sample applications in ASP.NET, C#, Java, JSP, and Objective-
C.
WebServiceStubs: Includes remoting stubs for .NET (C#), Java, and Objective-C.
To use the QXPSM SDK in ASP.NET/Visual C#, you must have the .NET 3.5/4.0
framework and development environment (Visual Studio).
Writing a Java QXPSM client
To write a QuarkXPress Server Manager client in Java:
Include the QXPSM stub jar file in the project classpath. This jar file can be 1.
found at the following location:
[QXPSM_Home]/XDK/WebServiceStubs/java/qxpsm-
webservicestubs.jar
Include all client-side third-party-dependent jar files in the project classpath. 2.
These can be found at the following location:
[QXPSM_Home]/XDK/WebServiceStubs/java/dependencies
Get a reference to the RequestService: 3.
RequestService requestService = new RequestServiceStub(
"http://[server]:[port]/qxpsm/services/RequestService");
Get a reference to the AdminService: 4.
AdminService adminService = new AdminServiceStub(
"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. Invoke NoValidationTrustProvider.install(), where
install() is the static method of the Java class NoValidationTrustProvider
(provided with the Java samples).
Java sample: Deconstructing a project
QRequestContext qRequestContext = new QRequestContext();
qRequestContext.setDocumentName("MyDoc.qxp");
// Create XML Request
XMLRequest xmlRequest = new XMLRequest();
qRequestContext.setRequest(xmlRequest);
// Get reference to RequestService
RequestService service = new RequestServiceStub(
"http://<server>:<port>/qxpsm/services/RequestService");
//Process Request using request service
QContentData data = service.processRequest(qRequestContext);
String deconstructXml = data.getTextData();
Java sample: Rendering a PDF
QRequestContext qRequestContext = new QRequestContext();
184 | A GUIDE TO QUARKXPRESS SERVER 2020