print(event_service.GetEventProperties()) # this will work
client.create_message(event_service, 'GetEventProperties') # this fails
This fails with `ValueError: There is no default service defined. This is usually due to missing wsdl:service definitions in the WSDL`
I explicitly created ServiceProxy object and passed it to Client.create_message, is it still necessary for service to be defined in wsdl?
Please provide the following information:
WSDL_LOCATION = 'https://www.onvif.org/ver10/events/wsdl/event.wsdl' ONVIF_SERVER = 'http://127.0.0.1:8787'
client = zeep.Client(WSDL_LOCATION, transport=Transport(cache=SqliteCache()))
event_service = client.create_service( '{http://www.onvif.org/ver10/events/wsdl}EventBinding', ONVIF_SERVER, )
print(event_service.GetEventProperties()) # this will work client.create_message(event_service, 'GetEventProperties') # this fails