2017

Table Of Contents
USING QUARKXPRESS SERVER
194 | A Guide to QuarkXPress Server 2017
Initialise QXPSMServiceManager using setupForHostWithProxy, with the5.
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.
proxyHost: Host name of HTTP proxy. If null, proxy is not used.
proxyPort: HTTP proxy port number.
username
: User name for proxy authentication. If null, no authentication is
performed.
password: Password for HTTP proxy authentication.
For example:
[[QXPSMServiceManager sharedInstance]
setupForHost:server port:port
logFilePath:axisLogFile logLevel:axisLo gLevel
axis2Path:axis2Home
useHttps:usehttps serverCertificatePath :certFileP ath
proxyHost:proxyHost proxyPort:proxyPort
username:proxyUserName password:proxyPa ssword];
Get a reference to the RequestService using QXPSMServiceManager and6.
perform the required API invocations on the referenced RequestService. For
example:
[[QXPSMServiceManager requestService]
getXPressDomForDocumentName:documentName];
To invoke a QXPSM service, get a reference to the AdminService using7.
QXPSMServiceManager and perform the required API invocations on the
referenced AdminService. For example:
[[QXPSMServiceManager requestService]
getXPressDomForDocumentName:documentName];
For sample code, see the following topics.
Objective-C sample: Deconstructing a project
QXPSMQRequestContext *qRequestContext =
[[[QXPSMQRequestContext alloc] init] autorelease];
[qRequestContext setDocumentName:@”MyDo c.qxp”];
// Create XML Request
QXPSMXMLRequest *xmlRequest = [[[QXPSMXMLRequest alloc] init]
autorelease];
[qRequestContext setRequest:xmlRequest] ;