You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am generating SOAP requests to IP cameras to use ONVIF API. When generating a request through Savon it doesn't work.
However, when generating via the official tool request passes OK.
Current behavior:
Here is the request generated through Savon and I am getting HTTPClient::KeepAliveDisconnected
To me, by just looking at the thing, the top one seems to use the wsse type of authentication, which is a Web Service description of authentication. The lower one seems to have a Digest header only.
Could it be that the service authenticates requests in some other way than the wsse thing?
@olleolleolle Hi thanks for the suggestion.
I tried different types of auth but ONVIF cameras support both wsse and digest so it should not be auth issue.
The next thing that I tried is changing namespaces and that made a request to work.
HTTPClient::KeepAliveDisconnected doesn't look like a correct error in this case.
The Official tool adds xmlns="http://docs.oasis-open.org/wsn/b-2" straight to the Unsubscribe tag.
Savon builds requests in a different way and adds a namespace wsdl:Unsubscribe with namespace declaration with wrong namespace xmlns:wsdl="http://www.onvif.org/ver10/events/wsdl"
<wsdl:Unsubscribe/>
I did not manage to add xmlns="http://docs.oasis-open.org/wsn/b-2" or remove wsdl namespace from Unsubscribe tag but managed to override it namespaces: { 'xmlns:wsdl' => "http://docs.oasis-open.org/wsn/b-2" }
Is there a way I can build the same request with savon as the official tools offer?
Bug report
I am generating SOAP requests to IP cameras to use ONVIF API. When generating a request through Savon it doesn't work.
However, when generating via the official tool request passes OK.
Current behavior:
Here is the request generated through Savon and I am getting HTTPClient::KeepAliveDisconnected
Request generated via the official tool:
Steps to reproduce current behavior:
Expected behavior:
Generated request passes OK
System information:
The text was updated successfully, but these errors were encountered: