9.12.6 PullMessagesResponse

以下PullMessageResponse包含两个匹配订阅的通知。这个响应(Response)告知客户端,两个对象交叉线对应的规则“MyImportantFence1”和“MyImportantFence2”。

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
  3. xmlns:wsa="http://www.w3.org/2005/08/addressing"
  4. xmlns:wstop="http://docs.oasis-open.org/wsn/t-1"
  5. xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
  6. xmlns:tet="http://www.onvif.org/ver10/events/wsdl"
  7. xmlns:tns1="http://www.onvif.org/ver10/topics"
  8. xmlns:tt="http://www.onvif.org/ver10/schema">
  9. <SOAP-ENV:Header>
  10. <wsa:Action>
  11. http://www.onvif.org/ver10/events/wsdl/PullPointSubscription/PullMessagesResponse
  12. </wsa:Action>
  13. </SOAP-ENV:Header>
  14. <SOAP-ENV:Body>
  15. <tet:PullMessagesResponse>
  16. <tet:CurrentTime>
  17. 2008-10-10T12:24:58
  18. </tet:CurrentTime>
  19. <tet:TerminationTime>
  20. 2008-10-10T12:25:58
  21. </tet:TerminationTime>
  22. <wsnt:NotificationMessage>
  23. <wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">
  24. tns1:RuleEngine/LineDetector/Crossed
  25. </wsnt:Topic>
  26. <wsnt:Message>
  27. <tt:Message UtcTime="2008-10-10T12:24:57.3 21Z">
  28. <tt:Source>
  29. <tt:SimpleItem Name="VideoSourceConfigurationToken" Value="1"/>
  30. <tt:SimpleItem Name="VideoAnalyticsConfigurationToken" Value="2"/>
  31. <tt:SimpleItem Value="MyImportantFence1" Name="Rule"/>
  32. </tt:Source>
  33. <tt:Data>
  34. <tt:SimpleItem Name="ObjectId" Value="15" />
  35. </tt:Data>
  36. </tt:Message>
  37. </wsnt:Message>
  38. </wsnt:NotificationMessage>
  39. <wsnt:NotificationMessage>
  40. <wsnt:Topic Dialect="http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet">
  41. tns1:RuleEngine/LineDetector/Crossed
  42. </wsnt:Topic>
  43. <wsnt:Message>
  44. <tt:Message UtcTime="2008-10-10T12:24:57.789Z">
  45. <tt:Source>
  46. <tt:SimpleItem Name="VideoSourceConfigurationToken" Value="1"/>
  47. <tt:SimpleItem Name="VideoAnalyti csConfigurationToken" Value="2"/>
  48. <tt:SimpleItem Value="MyImportantFence2" Name="Rule"/>
  49. </tt:Source>
  50. <tt:Data>
  51. <tt:SimpleItem Name="ObjectId" Value="19"/>
  52. </tt:Data>
  53. </tt:Message>
  54. </wsnt:Message>
  55. </wsnt:NotificationMessage>
  56. </tet:PullMessagesResponse>
  57. </SOAP-ENV:Body>
  58. </SOAP-ENV:Envelope>

上一章|继续阅读