HPOSSOD 1.0 Technical Note
HP Web Services for Output Server 11
Using HP Web Services for Output Server
Multiple-document print failure
Parameter 1 - XML createDocuments contract
For .NET clients,
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
Table 1-5. createDocuments attributes
Type Name Value
Operation wsg-job-handle Handle returned from createJobs API
Operation last-document True or False
Request document-filename Filename