HPOS 4.0 technical note 3
HP Web Services for Output Server 12
Using HP Web Services for Output Server
Multiple-document print failure
Input param- createDocuments object
createDocuments object will have only one argument.
1. XML createDocuments contract
Response- createDocumentsResponse object
The following is an example of a createDocuments request:
<wsg-request>
<operation-attributes>
<wsg-job-handle>JOB:7AC0AEF8F7D13B3A831DDD917D562460:19</wsg-job-handle>
</operation-attributes>
<request-attributes>
<document-filename>invoice.pdf</document-filename>
</request-attributes>
</wsg-request>
The following is an example of a createDocuments 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>
<wsg-doc-handle>DOC:618FDCE25E7C71C9F0388FF8E36267D4:33</wsg-doc-handle>
</operation-attributes>
</wsg-response>
The document handle returned as part of the response can be used to send chunks of data.
For the last document to be sent, set the last-document tag to true. When the contract with the
last-document value set to true is received, the deliver operation is invoked.
Sending chunks
You can use the sendChunks API to send the document chunk data along with the chunk contract. The structure of
the API is:
Web Service Name: sendChunks
Web Service Parameters
Parameter 1 - XML sendChunks contract
Parameter 2 - DocumentData
For .NET clients,
Table 1-6. sendChunks attributes
Type Name Value Requirement
Operation wsg-doc-handle
document handle returned
from createDocument API
Mandatory
Operation last-chunk True or False Not Mandatory
Operation document-checksum MD5 hash created for the document Not Mandatory
Operation document-chunk-
offset
Positive integer Mandatory