9.5

Table Of Contents
3
Include the QuarkXPress Server Manager stub libraries in the library search paths. These
libraries can be found at the following locations:
Mac OS:
[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
4
Create an instance of QXPSMServiceManager. (QXPSMServiceManager is an 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.
port: Web port configured at the server for HTTP (or HTTPS) communication.
logFilePath: Location where Axis2 can generate a log file.
logLevel: Number specifying log level for Web service communication (0 = critical, 1 =
error, 2 = warning, 3 = info, 4 = debug, 5 = user-level debug message, 6 = trace).
axis2Home: Client side Axis2 home folder location.
useHttps: Set to true for secure API communication with QXPSM server
serverCertificatePath: Certificate file path . For a non-secured connection, this
argument is ignored.
For example:
[[QXPSMServiceManager sharedInstance]
setupForHost:server port:port
logFilePath:axisLogFile logLevel:axisLogLevel axis2Path:axis2Home
useHttps:usehttps serverCertificatePath:certFilePath];
5
Initialise QXPSMServiceManager using setupForHostWithProxy, with the required
parameters:
Host: Host name of QXPSM server.
port: Web port configured at server for HTTP (or HTTPS) communication.
logFilePath: Location where Axis2 can generate a log file.
logLevel: Number specifying log level for Web service communication.
axis2Home: Client side Axis2 home folder location.
useHttps: Set to true for secure API communication with QXPSM server.
serverCertificatePath: Certificate file path. For a non-secured connection, this
argument is ignored.
A GUIDE TO QUARKXPRESS SERVER 9.5 | 175
USING QUARKXPRESS SERVER