FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
433 stars 144 forks source link

Delete ns0 from request and response #94

Open dmitriytim opened 2 years ago

dmitriytim commented 2 years ago

Good afternoon. I really need to remove prefix from requests my camera swears at him with a 400 error I got to etree.tostring( but inclusive_ns_prefixes=None, does not work :(

Bad

`<?xml version='1.0' encoding='utf-8'?>

http://www.onvif.org/ver10/device/wsdl/GetServicesurn:uuid:464855d9-4445-48bc-bd9e-88005cc61f22http://192.168.1.247:80/onvif/device_serviceadmin*********************2022-06-19T17:15:46+00:00true` **--->** ` env:Receiver ter:ActionNotSupported ActionNotSupported The device do NOT support this feature ` **Good** ` admin******************2022-06-19T12:36:12+00:00All` **---->** ` http://192.168.1.247:80/onvif/analytics_service true true http://192.168.1.247:80/onvif/device_service false false false false false false true false false false 2 0 2 10 2 20 2 30 2 40 false false false false 2 2 false false false false false false false false false false false http://192.168.1.247:80/onvif/event_service true true false http://192.168.1.247:80/onvif/imaging_service http://192.168.1.247:80/onvif/media_service true true true http://192.168.1.247:80/onvif/ptz_service http://192.168.1.247:80/onvif/deviceio_service 1 0 0 0 0 `
igorq777 commented 10 months ago

did you manage to solve the problem?