[Xml-compile] header method on HTTPDaemon object (version 0.11)
Zbigniew Lukasiak
zzbbyy at gmail.com
Tue Nov 18 14:56:09 GMT 2008
Hi,
One more thing. I was getting following error:
Can't locate object method "header" via package
"XML::Compile::SOAP::HTTPDaemon" at
/usr/lib/perl5/site_perl/5.8.8/XML/Compile/SOAP/HTTPDaemon.pm line
170.
Code above that line in HTTPDaemon.pm is:
my $resp = HTTP::Response->new($status);
$resp->protocol($request->protocol); # match request
my $s = $resp->content($xml->toString);
{ use bytes; $self->header('Content-Length' => length $s); }
I don't see where $self should get the header method from. So I
copied HTTPDaemon.pm and changed this to
{ use bytes; $resp->header('Content-Length' => length $s); }
I.e. I call the header method on the response object instead of $self.
And now it works.
I am joining #xml-compile.
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/
More information about the Xml-compile
mailing list