in reply to SOAP::Lite incompatible usage of HTTP::Headers

Ofcourse I assume my problem I was using Apache::SOAP. Changed conf to use Apache2::SOAP as follows

soap_fail.conf

LoadModule apreq_module modules/mod_apreq2.so Listen 8998 ErrorLog /home/inzoik/soap_fail/global_err PidFile /home/inzoik/soap_fail/soap_fail.pid <Location /session> SetHandler perl-script PerlResponseHandler Apache2::SOAP PerlSetVar dispatch_to "/home/inzoik/soap_fail/webservice/" </Location>
Running the same test.pl gives me the following in global_err
[Tue Mar 26 18:22:17 2013] [notice] Apache/2.2.16 (Unix) mod_apreq2-20 +090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming norma +l operations [Tue Mar 26 18:22:23 2013] [error] [client 10.32.238.200] Illegal fiel +d name 'APR::Table=HASH(0x8274070)' at /perl/5.10.1/lib/site_perl/5.1 +0.1/SOAP/Transport/HTTP2.pm line 103\n

Replies are listed 'Best First'.
Re^2: SOAP::Lite incompatible usage of HTTP::Headers
by Ross_flyingcat (Initiate) on Apr 11, 2013 at 12:24 UTC

    I met with exactly the same problem. Changing line 103 of SOAP/Transport/HTTP2.pm to below can fix the symptom.

    $self->request(HTTP::Request->new( $r->method() => $r->uri, HTTP::Headers->new(%$r->headers_in), do { my ($c,$buf); while ($r->read($buf,$cl)) { $c.=$buf; } $c; } ));
    looks like a bug.
      I see the same bug also. For me it just became apparent as the site I work on switched from perl 5.12 to perl 5.16. (Possibly why the bug was not more widely reported.)