CancelJobResponse element
The required CancelJobResponse element acknowledges a client's job cancellation request.
CancelJobResponse 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:CancelJobResponse/>
</wprt:CancelJobResponse/>
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 sends a CancelJobResponse element when it successfully processes a client's CancelJobRequest operation.
In the following example code, 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 sends a CancelJobResponse element to a client who requested a job cancellation.
<soap:Envelope
xmlns:soap="https://www.w3.org/2003/05/soap-envelope"
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>
https://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous
</wsa:To>
<wsa:Action>
https://schemas.microsoft.com/windows/2005/05/wdp/print/CancelJobResponse
</wsa:Action>
<wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
<wsa:RelatesTo>uuid:MsgIdOfTheCancelJobRequest</wsa:RelatesTo>
</soap:Header>
<soap:Body>
<wprt:CancelJobResponse/>
</soap:Body>
</soap:Envelope>
See also
Send comments about this topic to Microsoft
Build date: 7/19/2012