8.0

Table Of Contents
literal
Returns the contents of a file without any attempt to process it as a template. The
literal namespace returns any type of project requested. Depending on the file's MIME type, the
requested project can be returned within the browser (for example, JPEG) or saved to disk (for
example, a Microsoft® Word document).
Namespace
literal
Parameters
Response
The requested file returned in the HTTP response.
Alerts
Incorrect
administration realm
username and
password.
HTTP Error #401
This alert is displayed when an invalid administrator user name
and password are specified.
What to do: Find out the correct username and password that
were set in the server configuration and then resubmit literal
with the correct user name and password.
Logs
If the project is successfully rendered, a transaction success message is written to
the QuarkXPress Server Transaction Log file. The transaction entry consists of the
date and time of the request, request type, project name, type of response
produced by the server, size of the response returned in bytes, and client IP
address.
The following is a sample of a transaction entry:
8/10/2005 10:04:52 - literal/Test1.doc - Type:
application/vnd.Quark.QuarkXPress - Size: 800768 - Client: 127.0.0.1
If an alert is displayed, an error message is written to the QuarkXPress Server
error log file.
The following is a sample of an error log entry:
8/3/2005 17:49:23 - Error - Error Code: 10022 - Incorrect administration realm
username and password.
Example GET
URL
http://localhost:8080/literal/Story.doc
Example, Object
Model
Request Object Name : LiteralRequest
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals("")) rc.documentName =
this.DocumentSettings1.documentName.Text;
rc.request = new LiteralRequest();
//Create the service and call it with QRequestContext object
QManagerSDKSvcService svc = new QManagerSDKSvcService();
sdk.QContentData qc = svc.processRequest(rc);
Notes
The literal request requires an administrator user name and password if those
were set in the Server Configuration dialog box. When the literal request is
submitted to the browser, it asks for a user name and password. Enter the user
name and password that were set in the Server Configuration dialog box and
click OK.
Page 55