Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 52637
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: daniel.frett [...] ccci.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.710.10
Fixed in: (no value)



Subject: error sending a request in perl 5.10.0 containing utf-8 data using the string data type
in perl 5.10.0 SOAP::Lite does not correctly encode a utf-8 string as a string data type in the soap envelope. running the following command in perl 5.10.0: perl -MSOAP::Lite -e'SOAP::Lite->new(proxy => "http://example.com")->utf8Test(SOAP::Data->new(type => "string", value => "\x{263A}"))' produces the following error: HTTP::Message content must be bytes at /Library/Perl/5.10.0/SOAP/Transport/HTTP.pm line 204 The following modules are installed: SOAP::Lite 0.710.10 LWP 5.834 It appears that the string returned by pack("C0A*", $envelope) still has the utf-8 flag set in perl 5.10.0 -Daniel
The pack call only happened if non-latin utf8 characteres were part of the content. This is fixed in 0.711 Thanks, Martin
From: daniel.frett [...] ccci.org
I'm still getting the same error using SOAP::Lite 0.711 on perl 5.10 $ perl -MSOAP::Lite -e'SOAP::Lite->new(proxy => "http://example.com")- Show quoted text
>utf8Test(SOAP::Data->new(type => "string", value => "\x{263A}"))'
HTTP::Message content must be bytes at /usr/local/lib/perl5/site_perl/5.10.0/SOAP/Transport/HTTP.pm line 204 $ perl -MSOAP::Lite -e'print $SOAP::Lite::VERSION, "\n"' 0.711 $ perl --version This is perl, v5.10.0 built for x86_64-linux-thread-multi Copyright 1987-2007, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. On Thu Mar 18 16:34:48 2010, MKUTTER wrote: Show quoted text
> The pack call only happened if non-latin utf8 characteres were part of > the content. > > This is fixed in 0.711 > > Thanks, > > Martin
fixed in SVN in #365
fixed in >= 0.713