2017

Table Of Contents
USING QUARKXPRESS SERVER
A Guide to QuarkXPress Server 2017 | 193
Include the QuarkXPress Server Manager stub header files path in the header1.
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 header2.
files can be found at the following location:
Mac OS:
[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 search3.
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
Create an instance of QXPSMServiceManager. (QXPSMServiceManager is an4.
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:axisLo gLevel
axis2Path:axis2Home
useHttps:usehttps serverCertificatePath :certFileP ath];