The crate works well with AuthType::UsernameToken until I get a new camera, which is HikVision iDS-2DE7220MC-CSJPY. Then I tried AuthType::Digest, it could work but need request twice.
I also test the camera with ONVIF Device Manager. It works well.
So I compare the data by Wireshark, try to change the onvif-rs the data so it can looks like the ODM's data. I finally make it works by change Nonce and Created.
Let me show their UsernameToken field.
First is the ODM one
The crate works well with
AuthType::UsernameToken
until I get a new camera, which is HikVision iDS-2DE7220MC-CSJPY. Then I triedAuthType::Digest
, it could work but need request twice. I also test the camera with ONVIF Device Manager. It works well. So I compare the data by Wireshark, try to change theonvif-rs
the data so it can looks like the ODM's data. I finally make it works by changeNonce
andCreated
.Let me show their UsernameToken field. First is the ODM one
And the
onvif-rs
's one.It's obvious that the
Nonce
andCreated
field ofonvif-rs
is longer than ODM.