Open hongquan opened 5 years ago
The bug is from Zeep: https://github.com/mvantellingen/python-zeep/issues/870
This fix helps python-onvif-zeep work with some China cameras, which require the SOAP Envelop to be like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:wsc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:dom0="http://www.axis.com/2009/event" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error"> <SOAP-ENV:Body> <tds:GetServices> <tds:IncludeCapability>false</tds:IncludeCapability> </tds:GetServices> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
and rejects:
<soap-env:Body> <ns0:GetServices xmlns:ns0="http://www.onvif.org/ver10/device/wsdl"> <ns0:IncludeCapability>false</ns0:IncludeCapability> </ns0:GetServices> </soap-env:Body>
as produced by current Zeep.
@FalkTannhaeuser What need to be done to let this PR merged?
The bug is from Zeep: https://github.com/mvantellingen/python-zeep/issues/870
This fix helps python-onvif-zeep work with some China cameras, which require the SOAP Envelop to be like this:
and rejects:
as produced by current Zeep.