-#!/usr/bin/perl -wT
+#!/usr/bin/perl -T
+
+use warnings;
+use strict;
#use SOAP::Transport::HTTP;
# (Nothing in Debbugs should be looked at as if it were date/time) we
# kill off all of the date/time related bits in the serializer.
my $typelookup = $soap->serializer()->{_typelookup};
-for my $key (keys %{$type_lookup}) {
- next unless /Month|Day|Year|date|time|duration/;
- delete $type_lookup->{$key};
+for my $key (keys %{$typelookup}) {
+ delete $typelookup->{$key} if defined $key and $key =~ /Month|Day|Year|date|time|duration/i;
}
-$soap->handle;
+our $warnings = '';
+eval {
+ # Ignore stupid warning because elements (hashes) can't start with
+ # numbers
+ local $SIG{__WARN__} = sub {$warnings .= $_[0] unless $_[0] =~ /Cannot encode unnamed element/};
+ $soap->handle;
+};
+die $@ if $@;
+warn $warnings if length $warnings;