agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
679 stars 230 forks source link

Wrong ONVIF SOAP Response on AXIS Cameras #307

Open d9-Mark opened 6 months ago

d9-Mark commented 6 months ago

Hello, I am using AXIS Communications cameras, I've checked ONVIF compliance on their website and all of the cameras I'm using are supported. My specific camera is M3206-LVE.

I am attempting to use the examples to perform those actions on a camera I have access to. In the AXIS camera dashboard, I created the ONVIF account as an administrator. Using examples.js, with the camera's IP address + the username and password I set for the ONVIF account in the AXIS dashboard I am receiving an error of "Wrong ONVIF SOAP response." I am logging the result in utils.js:85 and getting this back, {"html":{"head":[{"title":["302 Found"]}],"body":[{"h1":["Found"],"p":[{"_":"The document has moved .","a":[{"_":"here","$":{"href":"https://<CAM_IP>/onvif/device_service/"}}]}]}]}}

I do notice on my dashboard for AXIS the HTTPS connection is not secure, could this be an issue with how the network is setup for the cameras? I have also disabled the replay attack protection in the AXIS camera dashboard temporarily, this did not resolve my issue. I get the same error, "Wrong ONVIF SOAP Response" when using my own application and setting up the connection as shown in the example. Please let me know what other information I can provide to help you help me.