다음을 통해 공유


JobEndStateEvent 요소

필수 JobEndStateEvent 요소는 스캐너가 작업 처리를 완료했음을 클라이언트에 알릴 수 있습니다.

사용량

<wscn:JobEndStateEvent>
  child elements
</wscn:JobEndStateEvent>

특성

특성이 없습니다.

자식 요소

요소
JobEndState

부모 요소

부모 요소가 없습니다.

설명

WSD Scan Service는 스캐너가 작업 처리를 완료하면 JobEndStateEvent 이벤트 요소를 클라이언트에 보냅니다. JobEndStateEvent 에는 완료된 작업과 완료에 대한 세부 정보를 식별하는 데이터 요소가 포함되어 있습니다.

예제

다음 코드 예제에서는 검사 디바이스가 최종 상태 및 작업 253의 상태 클라이언트에 알리는 방법을 보여줍니다.

<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/JobEndStateEvent
    </wsa:Action>
    <wsa:MessageID>uuid:UniqueMsgId</wsa:MessageID>
  </soap:Header>

  <soap:Body>
    <wscn:JobEndStateEvent>
      <wscn:JobEndState>
        <wscn:JobId>253</wscn:JobId>
        <wscn:JobCompletedState>Completed</wscn:JobCompletedState>
        <wscn:JobCompletedStateReasons>
          <wscn:JobStateReason>JobCompletedWithWarnings</wscn:JobStateReason>
        </wscn:JobCompletedStateReasons>
        <wscn:JobName>Scan from Imaging App</wscn:JobName>
        <wscn:JobOriginatingUserName>User</wscn:JobOriginatingUserName>
        <wscn:ScansCompleted>7</wscn:ScansCompleted>
        <wscn:JobCompletedTime>2006-01-24T11:37:05.673Z</wscn:JobCompletedTime>
      </wscn:JobEndState>
    </wscn:JobEndStateEvent>
  </soap:Body
</soap:Envelope>

추가 정보

JobEndState