HPOSSOD 1.0 Technical Note

HP Web Services for Output Server 12
Using HP Web Services for Output Server
Multiple-document print failure
Parameter 2 - DocumentData
For .NET clients,
Input param- sendChunks object
sendChunks object will have two arguments.
1. XML sendChunks contract
2. DocumentData which holds the data for the document
Response- sendChunksResponse object
The following is an example of a sendChunks request:
<wsg-request>
<operation-attributes>
<wsg-doc-handle>DOC:618FDCE25E7C71C9F0388FF8E36267D4:33</wsg-doc-hand
le>
<last-chunk>true</last-chunk>
<document-chunk-offset>0</document-chunk-offset>
<document-checksum>1c4d6819a1e156463c26f339183fea5448724249
</document-checksum>
</operation-attributes>
<request-attributes>
</request-attributes>
</wsg-request>
The following is an example of a sendChunks response:
<wsg-response>
<operation-attributes>
<status-code>0</status-code>
<status-message>success</status-message>
</operation-attributes>
</wsg-response>
For the last document to be sent, set the last-document tag to true.
Querying jobs
The queryJobs API is used to query HP Output Server jobs. The server side representation of the API is:
Web Service Name: queryJobs
Web Service Parameters
Table 1-6. sendChunks attributes
Type Name Value
Operation wsg-doc-handle
document handle returned from createDocument
API
Operation last-chunk True or False
Operation document-checksum MD5 hash created for the document
Operation document-chunk-
offset
Positive integer