Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$ cat test.pl use strict; use warnings; use SOAP::Lite; print "\$SOAP::Lite::VERSION: $SOAP::Lite::VERSION\n"; my $writer = SOAP::Serializer->new(); my $fault = SOAP::Fault->new(faultcode => "Server"); my $content = $writer->envelope(fault => $fault); print $content, "\n"; eval { SOAP::Deserializer->deserialize($content); }; if ($@) { print "Deserialize failed: $@"; } $ perl test.pl $SOAP::Lite::VERSION: 1.11 Use of uninitialized value in join or string at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +520. Use of uninitialized value in join or string at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +520. Use of uninitialized value in join or string at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +520. Argument "Server: " isn't numeric in sprintf at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +1033. Use of uninitialized value $name in substitution (s///) at /home/vagra +nt/perl5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Li +te.pm line 1100. Use of uninitialized value $name in exists at /home/vagrant/perl5/perl +brew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line 11 +01. Use of uninitialized value $name in hash element at /home/vagrant/perl +5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm l +ine 1101. Use of uninitialized value $name in hash element at /home/vagrant/perl +5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm l +ine 1105. Use of uninitialized value $name in hash element at /home/vagrant/perl +5/perlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm l +ine 1105. Use of uninitialized value in join or string at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +520. Argument "Server: " isn't numeric in sprintf at /home/vagrant/perl5/pe +rlbrew/perls/perl-5.18.2-fPIC/lib/site_perl/5.18.2/SOAP/Lite.pm line +1033. <?xml version="1.0" encoding="UTF-8"?><soap:Envelope soap:encodingStyl +e="http://schemas.xmlsoap.org/soap/encoding/" xmlns:namesp1="http://n +amespaces.soaplite.com/perl" xmlns:soap="http://schemas.xmlsoap.org/s +oap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encodin +g/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://ww +w.w3.org/2001/XMLSchema-instance"><soap:Body><soap:Fault><faultcode x +si:type="namesp1"><_faultcode xsi:type="xsd:string">Server</_faultcod +e></faultcode><faultstring xsi:nil="true" /></soap:Fault></soap:Body> +</soap:Envelope> Deserialize failed: Unspecified namespace for type 'namesp1'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why can't SOAP::Lite deserialize its own output?
by boftx (Deacon) on Jul 03, 2014 at 03:47 UTC | |
by Anonymous Monk on Jul 03, 2014 at 03:51 UTC | |
by boftx (Deacon) on Jul 03, 2014 at 04:02 UTC | |
|
Re: Why can't SOAP::Lite deserialize its own output? (it does)
by Anonymous Monk on Jul 03, 2014 at 07:57 UTC |