다음을 통해 공유


ScannerStatusConditionEvent 요소

필요한 ScannerStatusConditionEvent 요소는 검사 디바이스의 단일 상태 변경에 대한 자세한 정보를 클라이언트에 제공합니다.

사용량

<wscn:ScannerStatusConditionEvent>
  child elements
</wscn:ScannerStatusConditionEvent>

특성

특성이 없습니다.

자식 요소

요소
DeviceCondition

부모 요소

부모 요소가 없습니다.

설명

WSD Scan Service는 ActiveConditions 요소 테이블에서 DeviceCondition 요소가 추가되거나 변경되면 ScannerStatusConditionEvent 요소를 클라이언트에 보냅니다. ScannerStatusConditionEvent의 본문에는 새 DeviceCondition 요소 또는 변경된 DeviceCondition 요소가 포함됩니다.

WSD 스캔 서비스는 보고된 DeviceCondition이 지워지면 ScannerStatusConditionClearedEvent 요소를 클라이언트에 보내야 합니다.

예제

다음 코드 예제에서는 검사 디바이스가 검사 램프 오류에 대해 클라이언트에 알리게 하는 방법을 보여줍니다.

<soap:Envelope
  xmlns:soap="https://www.w3.org/2003/05/soap-envelope"
  xmlns:wsa="https://schemas.xmlsoap.org/ws/2004/08/addressing"
  xmlns:wse="https://schemas.xmlsoap.org/ws/2004/08/eventing"
  xmlns:wscn="https://schemas.microsoft.com/windows/2006/01/wdp/scan"
  soap:encodingStyle='https://www.w3.org/2002/12/soap-encoding'>

  <soap:Header>
    <wsa:To>AddressofEventSink</wsa:To>
    <wsa:Action>
      https://schemas.microsoft.com/windows/2006/01/wdp/scan/ScannerStatusConditionEvent
    </wsa:Action>
    <wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
  </soap:Header>

  <soap:Body>
    <wscn:ScannerStatusConditionEvent>
      <wscn:DeviceCondition wscn:Id="1543">
        <wscn:Time>2006-01-21T17:22:27.5242689Z</wscn:Time>
        <wscn:Name>LampError</wscn:Name>
        <wscn:Component>Platen</wscn:Component>
        <wscn:Severity>Critical</wscn:Severity>
      </wscn:DeviceCondition>
    </wscn:ScannerStatusConditionEvent>
  </soap:Body
</soap:Envelope>

추가 정보

ActiveConditions

DeviceCondition

ScannerStatusConditionClearedEvent