python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

zeep.exceptions.Fault: Method 'soap-env:Envelope' not implemented: method name or namespace not recognized

Open joaopalma5 opened this issue 7 years ago • 2 comments

hey, anyone can help me? in Zeep the method soap-env:Envelope isn't implemented.. this is my code

....
#access media service
media = mycam.create_media_service()                

profiles = media.GetProfiles()

# Use the first profile and Profiles have at least one
token = profiles[0].token
snapshot = media.GetSnapshotUri({'ProfileToken' : token})
print ('My Cam: ' + str(snapshot))

OUTPUT `Traceback (most recent call last): File "C:\Program Files\Python37\lib\site-packages\onvif_zeep-0.2.12-py3.7.egg\onvif\client.py", line 23, in wrapped return func(*args, **kwargs) File "C:\Program Files\Python37\lib\site-packages\onvif_zeep-0.2.12-py3.7.egg\onvif\client.py", line 153, in wrapped return call(params, callback) File "C:\Program Files\Python37\lib\site-packages\onvif_zeep-0.2.12-py3.7.egg\onvif\client.py", line 140, in call ret = func(**params) File "C:\Program Files\Python37\lib\site-packages\zeep-3.1.0-py3.7.egg\zeep\proxy.py", line 42, in call self._op_name, args, kwargs) File "C:\Program Files\Python37\lib\site-packages\zeep-3.1.0-py3.7.egg\zeep\wsdl\bindings\soap.py", line 132, in send return self.process_reply(client, operation_obj, response) File "C:\Program Files\Python37\lib\site-packages\zeep-3.1.0-py3.7.egg\zeep\wsdl\bindings\soap.py", line 194, in process_reply return self.process_error(doc, operation) File "C:\Program Files\Python37\lib\site-packages\zeep-3.1.0-py3.7.egg\zeep\wsdl\bindings\soap.py", line 349, in process_error subcodes=subcodes) zeep.exceptions.Fault: Method 'soap-env:Envelope' not implemented: method name or namespace not recognized

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File ".\onvifCapture.py", line 19, in snapshot = media.GetSnapshotUri({'ProfileToken' : token}) File "C:\Program Files\Python37\lib\site-packages\onvif_zeep-0.2.12-py3.7.egg\onvif\client.py", line 26, in wrapped raise ONVIFError(err) onvif.exceptions.ONVIFError: Unknown error: Method 'soap-env:Envelope' not implemented: method name or namespace not recognized`

joaopalma5 avatar Oct 16 '18 15:10 joaopalma5

Hello, Did you find any solution for your problem ?

MAminZ avatar Apr 09 '19 09:04 MAminZ

I had exactly the same problem. It took me a while, but I in the end figured it out. In my case, it turned out that I was sending the operation request to the wrong service (a Media2 request to device_service).

dmbaboiu avatar Aug 06 '20 05:08 dmbaboiu