用Onvif test tool測試自己寫的Onvif client時,Probe收到此信息: SOAP 1.2 fault: SOAP-ENV:Sender [no subcode] Stopped: no response sent or received (informative) Detail: [no detail] 找了好久,才發現原來不是代碼錯誤,而是Onvif test tool按下“
用Onvif test tool測試自己寫的Onvif client時,Probe收到此信息:
SOAP 1.2 fault: SOAP-ENV:Sender [no subcode]
"Stopped: no response sent or received (informative)"
Detail: [no detail]
找了好久,才發現原來不是代碼錯誤,而是Onvif test tool按下“Discover Devices”時會發出兩條Probe,一條搜索“device”,一條搜索“NetworkVideoTransmitter”。而我做的客戶端只會響應第二個。對于第一個,Probe函數會返回SOAP_STOP,接下來就會打印以上信息。
所以在Probe時出現此信息應該屬于正常情況。 其他時候出現另當別論。
后記:剛發現,按照“ONVIF_CC-Core_Spec_2.0.pdf”的說法,新版的Onvif server設備是應該相應搜索“device”的,而“NetworkVideoTransmitter”是用于兼容舊版本的設備。所以應該在相應設備類型中加入“device”類型。
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com