Merge pull request #1408 from altaroca/onvif-discovery-1346

ONVIF: Added XML header in serializer
This commit is contained in:
Isaac Connor 2016-04-09 11:28:59 -04:00
commit fa56c17bdb
1 changed files with 5 additions and 2 deletions

View File

@ -97,8 +97,11 @@ sub serialize {
my $soap_prefix = $opt->{ namespace }->{ $SOAP_NS };
# envelope start with namespaces
my $xml = "<$soap_prefix\:Envelope ";
# XML starts with header
my $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
# envelope starts with namespaces
$xml .= "<$soap_prefix\:Envelope ";
while (my ($uri, $prefix) = each %{ $opt->{ namespace } })
{