Home  >  Article  >  Database  >  Onvif客户端出现“SOAP 1.2 fault: SOAP

Onvif客户端出现“SOAP 1.2 fault: SOAP

WBOY
WBOYOriginal
2016-06-07 15:13:501560browse

用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”类型。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn