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
420 stars 137 forks source link

[fix] Blank Topic title in PullMessages #114

Open wanglong001 opened 10 months ago

wanglong001 commented 10 months ago

[fix] Blank Topic title in PullMessages

[{
    'SubscriptionReference': None,
    'Topic': {
        '_value_1': None,
        'Dialect': 'http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet',
        '_attr_1': {
    }
    },
    'ProducerReference': None,
    'Message': {
        '_value_1': <Element {http://www.onvif.org/ver10/schema}Message at 0x7fe221a2f348>
    }
}]

https://github.com/FalkTannhaeuser/python-onvif-zeep/issues/69

ref: https://github.com/hunterjm/python-onvif-zeep-async/commit/5b712c4e7300ac4982f9de5f265f2d0a9d369a51

add this patch:

{
    'SubscriptionReference': None,
    'Topic': {
        '_value_1': 'tns1:VideoSource/MotionAlarm',
        'Dialect': 'http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet',
        '_attr_1': {
    }
    },
    'ProducerReference': None,
    'Message': {
        '_value_1': <Element {http://www.onvif.org/ver10/schema}Message at 0x1c5aca77a80>
    }
}