-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ONVIF Camera (Axis) returning InvalidArgs when sending request with Savon #971
Comments
migalenkom
changed the title
Onvif Camera returns invalid args when sending request with SAVON
ONVIF Camera (Axis) returning InvalidArgs when sending request with Savon
May 27, 2022
@michaelklishin Do you find any solution? |
Hi, @Dounx as far as I remember there needs to add namespaces.
|
Where to add this namespaces? I am trying to call some ONVIF PTZ Interface class PTZClient
attr_reader :client
def initialize(endpoint, username, password)
@client = Savon.client do |c|
c.wsdl "https://www.onvif.org/ver20/ptz/wsdl/ptz.wsdl"
c.endpoint endpoint
c.wsse_auth(username, password, :digest)
end
end
def presets(token)
client.call(:get_presets, message: { profile_token: token })
end
end
tokens = ["profileToken1"]
endpoint = "xxx"
username = "xxx"
password = "xxx"
ptz_client = PTZClient.new(endpoint, username, password)
presets = ptz_client.presets(tokens.first)
p presets But I also get this error: Any idea? |
OK, It's my code issue. I forget add |
looks like this was resolved? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Current behavior:
We are using the official ONVIF tool and it is generating this request which is working correctly:
We are trying to replicate the same with Savon, we are using this code:
This code is generating this XML, which looks a little different:
When we send the SAVON version of the XML, the camera returns:
Do you have any ideas about what could be causing the issue? - We are tearing our hair out, thank you!
Steps to reproduce current behavior:
Expected behavior:
request passed OK
System information:
The text was updated successfully, but these errors were encountered: