HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 9
Using HP Web Services for Output Server
Multiple-document print failure
This API allows you to send multiple documents. For the last document, you must set the last-document tag
value to true. When the value is set to true, the documents can be sent for delivery.
The following is an example of a sendDocuments request:
<wsg-request>
<operation-attributes>
<wsg-job-handle>JOB:49CA18FDE12CA3C9CF6317C501BB3EB4:8</wsg-job-handle>
<last-document>True</last-document>
</operation-attributes>
<request-attributes>
<document-filename>invoice.pdf</document-filename>
</request-attributes>
</wsg-request>
The following is an example of a sendDocuments response:
<wsg-response>
<status-code>0</status-code>
<status-message>Success</status-message>
<operation-attributes>
<status-code>0</status-code>
<status-message>Success</status-message>
</operation-attributes>
<job-info>
<job-client-id>dlm:1:72</job-client-id>
<status-code>0</status-code>
<status-message>success</status-message>
<subjob-info><status-code>0</status-code>
<status-message>success</status-message>
<job-identifier>jqm:2530598</job-identifier>
<current-job-state>pre-processing</current-job-state>
<destination>FileDest</destination>
</subjob-info>
</job-info>
</wsg-response>
Multiple-document delivery with chunking
You can deliver multiple documents with chunking by creating a job, creating documents, and then sending document
chunks.
Creating jobs
The createJobs API is used for creating a job and pseudo job identifier, which can be used to send documents for
that particular job. The structure of the API is:
Table 1-3. sendDocuments attributes
Type Name Value
Operation wsg-job-handle Handle returned from createJobs API
Operation document-checksum MD5 hash created for the document
Operation last-document True or False
Request document-filename Filename