-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3734 from sletteland/onvif_events
Onvif events
- Loading branch information
Showing
9 changed files
with
913 additions
and
93 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
package WSNotification::Elements::Header; | ||
use strict; | ||
use warnings; | ||
|
||
|
||
__PACKAGE__->_set_element_form_qualified(0); | ||
|
||
sub get_xmlns { 'http://schemas.xmlsoap.org/soap/envelope/' }; | ||
|
||
our $XML_ATTRIBUTE_CLASS; | ||
undef $XML_ATTRIBUTE_CLASS; | ||
|
||
sub __get_attr_class { | ||
return $XML_ATTRIBUTE_CLASS; | ||
} | ||
|
||
use Class::Std::Fast::Storable constructor => 'none'; | ||
use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); | ||
use Data::Dumper; | ||
|
||
Class::Std::initialize(); | ||
|
||
{ # BLOCK to scope variables | ||
|
||
my %Action_of :ATTR(:get<Action>); | ||
my %MessageID_of :ATTR(:get<MessageID>); | ||
my %ReplyTo_of :ATTR(:get<ReplyTo>); | ||
my %To_of :ATTR(:get<To>); | ||
__PACKAGE__->_factory( | ||
[ qw( Action MessageID ReplyTo To ) ], | ||
{ | ||
'Action' => \%Action_of, | ||
'MessageID' => \%MessageID_of, | ||
'ReplyTo' => \%ReplyTo_of, | ||
'To' => \%To_of, | ||
}, | ||
{ | ||
'Action' => 'WSNotification::Elements::Action', | ||
'MessageID' => 'WSNotification::Elements::MessageID', | ||
'ReplyTo' => 'WSNotification::Elements::ReplyTo', | ||
'To' => 'WSNotification::Elements::To', | ||
}, | ||
{ | ||
'Action' => '', | ||
'MessageID' => '', | ||
'ReplyTo' => '', | ||
'To' => '', | ||
} | ||
); | ||
|
||
} # end BLOCK | ||
|
||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.