fix a hash randomization bug that was causing random failures in t/SOAP/WSDL/05_simpleType-list.t

This commit is contained in:
Scott Walters
2014-08-28 21:03:39 -04:00
parent 31f5deacf5
commit 37740b870a
2 changed files with 2 additions and 381 deletions

View File

@@ -32,8 +32,9 @@ sub serialize {
# envelope start with namespaces
my $xml = qq|<?xml version="1.0" ?><$soap_prefix\:Envelope |;
while (my ($uri, $prefix) = each %{ $opt->{ namespace } })
for my $uri ( sort { $a cmp $b } keys %{ $opt->{ namespace } } )
{
my $prefix = $opt->{ namespace }->{ $uri };
$xml .= "xmlns:$prefix=\"$uri\" ";
}
#