Richard Clarke wrote:
> Hi Guys,
> Can someone suggest a good method for debugging the server portion of
> soaplite applications when used in a mod perl context.
> Debugging in the sense that I want to print out strings to apache log or
> similar.
>
I've had good with this setup for the client:
use SOAP::Lite
+autodispatch =>
uri => 'http://www.example.com/My/SOAP/Package',
proxy => 'http://www.example.com/soap',
on_fault => sub { my($soap, $res) = @_;
die ref $res ? $res->faultstring : $soap->transport->status, "\n";
},
on_debug => sub{print@_};
along with a cleanup handler that prints out $r->string
PerlCleanupHandler 'sub { my $r = shift; $r->log_error($r->as_string); }'
not sure if that is sufficient for what you want since it's mostly
client side, but SOAP::Lite produces very verbose output with on_debug()
so it's been sufficient for some work with Apache::SOAP at least.
HTH
--Geoff