GetJobHistoryRequest element

The required GetJobHistoryRequest element requests a summary of job-related variables for previously completed jobs.

GetJobHistoryRequest is defined in the namespace at this URI: https://schemas.microsoft.com/windows/2005/05/wdp/print and referenced by the prefix wprt. (This resource may not be available in some languages and countries.)

Usage

<wprt:GetJobHistoryRequest/>
</wprt:GetJobHistoryRequest/>

Attributes

There are no attributes.

Text value

None

Child elements

There are no child elements.

Parent elements

There are no parent elements.

Remarks

The WSD Print Service must support the GetJobHistoryRequest operation.

The GetJobHistoryRequest operation allows a client to retrieve a list that contains a summary of job-related variables for previously completed jobs. The WSD Print Service must respond with a GetJobHistoryResponse element that contains the information the client asked for or the appropriate error codes.

All the codes described in Common Operation Error Codes could be returned from this operation. See Operation Error Reporting for details on how to report errors.

In the following code example, note that you must also prefix the names of the child and other elements with the appropriate namespace to be certain that your name references apply to elements in the correct namespace.

Examples

The following code example contains a request for job history.

<soap:Envelope
    xmlns:soap="https://www.w3.org/2003/05/soap-envelope"
    xmlns:wsdp="https://schemas.xmlsoap.org/ws/2005/05/devprof"
    xmlns:wsa="https://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:wprt="https://schemas.microsoft.com/windows/2005/05/wdp/print">
    soap:encodingStyle='https://www.w3.org/2002/12/soap-encoding' >
  <soap:Header>
    <wsa:To>uuid:DeviceUUID</wsa:To>
    <wsdp:ServiceId>uri:IdofThisService</wsdp:ServiceId>
    <wsa:Action>
      https://schemas.microsoft.com/windows/2005/05/wdp/print/GetJobHistory
    </wsa:Action>
    <wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
  </soap:Header>
  <soap:Body>
    <wprt:GetJobHistory/>
  </soap:Body>
</soap:Envelope>

See also

Common Operation Error Codes

GetJobHistoryResponse

Operation Error Reporting

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012