2020

Table Of Contents
USING QUARKXPRESS SERVER
HttpClient client = new HttpClient();
int status = client.executeMethod(method);
if (status == HttpStatus.SC_OK) {
System.err.println("Upload complete..");
} else {
System.err.println("Upload failed, response=" +
HttpStatus.getStatusText(status));
}
} catch (Exception ex) {
System.err.println("Error: " + ex.getMessage());
} finally {
method.releaseConnection();
}
Writing a .NET QXPSM client
To write a QuarkXPress Server Manager client in .NET:
Add a reference to the QuarkXPress Server Mananger .NET Web service stubs. 1.
The “QXPSMWebServiceStubs.dll” file can be found at the following location:
[QXPSM_Home]/XDK/WebServiceStubs/dotnet/QXPSMWebServiceStubs.d
ll
Add a reference to Microsoft’s System.Web.Services library. 2.
Add Reference dialog box
Get a reference to the RequestService: 3.
RequestService requestService = new RequestService();
requestService.Url =
"http://<server>:<port>/qxpsm/services/RequestService";
Get a reference to the AdminService: 4.
AdminService adminService = new AdminService();
adminService.Url =
"http://<server>:<port>/qxpsm/services/AdminService";
Use these two services to make requests. 5.
For sample code, see the following topics.
186 | A GUIDE TO QUARKXPRESS SERVER 2020