AddDocumentResponse element

The required AddDocumentResponse element acknowledges the client's AddDocumentRequest.

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

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 can optionally support the AddDocumentResponse operation. Note that AddDocumentResponse must be supported if AddDocumentRequest is supported.

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 sample shows a valid response to AddDocumentRequest:

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

See also

AddDocumentRequest

 

 

Send comments about this topic to Microsoft

Build date: 7/19/2012