SendDocumentResponse element

The required SendDocumentResponse element indicates that the printer accepted and will process the data sent in SendDocumentRequest.

SendDocumentResponse 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:SendDocumentResponse/>
</wprt:SendDocumentResponse/>

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 SendDocumentResponse operation.

The WSD Print Service must send a SendDocumentResponse operation in response to a client's successful call to the SendDocumentRequest operation.

If the client has sent an invalid SendDocumentRequest operation, the Print Service must return the appropriate error code instead of SendDocumentResponse. See the SendDocumentRequest reference page for error checking details and codes.

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 sample shows the Print Service's response to a client's SendDocumentRequest.

<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/SendDocumentResponse
    </wsa:Action>
    <wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
    <wsa:RelatesTo>uuid:MsgIdOfTheSendDocumentRequest</wsa:RelatesTo>
  </soap:Header>
  <soap:Body>
    <wprt:SendDocumentResponse/>
  </soap:Body>
</soap:Envelope>

See also

SendDocumentRequest

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012