2020

Table Of Contents
USING QUARKXPRESS SERVER
QuarkXPressRenderRequest qxpreq = new QuarkXPressRenderRequest();
// Save as request that saves the file
SaveAsRequest saveAsRequest= new SaveAsRequest();
saveAsRequest.newName = "NewDoc.qxp";
qxpreq.request = saveAsRequest;
qRequestContext.request = qxpreq;
// Get reference to RequestService
RequestService service = new RequestService();
service.Url =
"http://[server]:[port]/qxpsm/services/RequestService";
// Process the request
service.processRequest(qRequestContext);
If made from QuarkXPress Server, this request would look like this:
http://[server]:[port]/saveas/qxpdoc/Project.qxp?newname="NewDoc.
qxp"
Writing an Objective-C client for macOS or iOS
To write a QuarkXPress Server Manager client in objective C for macOS or iOS:
Include the QuarkXPress Server Manager stub header files path in the header 1.
search paths. These files can be found at the following location:
[QXPSM_Home]/XDK/WebServiceStubs/objective-c/include
Include the Axis2c header files path in the header search paths. These header 2.
files can be found at the following location:
macOS: [QXPSM_Home]/XDK/WebServiceStubs/objective-
c/lib/i86_64/axis2c/include
iOS: [QXPSM_Home]/XDK/WebServiceStubs/objective-
c/lib/arm/axis2c/include
Include the QuarkXPress Server Manager stub libraries in the library search 3.
paths. These libraries can be found at the following locations:
macOS:
[QXPSM_Home]/XDK/WebServiceStubs/objective-c/lib/i86_64/
c/libQXPSMSoapCBindings.a
cpp/libQXPSMSoapCppBindings.a
objc/libQXPSMSoapObjCBindings.a
iOS:
[QXPSM_Home]/XDK/WebServiceStubs/objective-c/lib/i86_64/
c/libQXPSMSoapCBindings.a
cpp/libQXPSMSoapCppBindings.a
objc/libQXPSMSoapObjCBindings.a
Create an instance of QXPSMServiceManager. (QXPSMServiceManager is an 4.
Axis2c-based factory for QXPSM Web services stubs. It maintains shared
instances of stubs corresponding to different QXPSM Web services.)
Initialise QXPSMServiceManager using setupForHost, with the required
parameters:
Host: Host name of QXPSM server.
188 | A GUIDE TO QUARKXPRESS SERVER 2020