onvif协议,求各路大神指点,我先提前给大伙拜个年了!

OldMom 2019-01-30 02:11:09
Onvif Device Test Tool 测试工具中 Get形式的接口都可以用,
但是Set形式的接口都是报400的错误下面给图
Get形式接口(是成功的)

Set的形式(Status是400)

点击Send Request之后的结果我拷在下面了,主要是出现了Sender not Authorized,我还是个菜鸟,在网上找了很久都没有找到结果,求各位大神不吝赐教,在这提前给大家拜个年!祝大家猪年快乐QAQ!

HTTP/1.1 400 Bad Request
Status: 400
Content-Type: application/soap+xml; Charset=utf-8
Content-length: 878
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env=“http://www.w3.org/2003/05/soap-envelope” xmlns:enc=“http://www.w3.org/2003/05/soap-encoding” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=“http://www.w3.org/2001/XMLSchema” xmlns:rpc=“http://www.w3.org/2003/05/soap-rpc” xmlns:xop=“http://www.w3.org/2004/08/xop/include” xmlns:ter=“http://www.onvif.org/ver10/error” xmlns:wsse=“http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd”>
env:Body
env:Fault
env:Code
env:Valueenv:Sender</env:Value>
env:Subcode
env:Valueter:NotAuthorized</env:Value>
</env:Subcode>
</env:Code>
env:Reason
<env:Text xml:lang=“en”>Sender not Authorized</env:Text>
</env:Reason>
env:Detail
env:TextThe action requested requires authorization and the sender is not authorized.</env:Text>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>

...全文
234 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧