For SOAP, you can use SOAP::Lite to help you debug in Perl.
For example, in the SearchSamples Perl code, the following lines (16-17) provide an easy way to turn on custom debugging:
GetOptions ('debug' => \my $DEBUG);
SOAP::Lite->import(trace => 'debug') if $DEBUG;
Then, the code does some error checking as part of the searchCatalogSoap subroutine.
if ($response->fault)
{
print $response->faultcode, ' ', $response->faultstring, '\n';
die 'Terminating program';
}
This looks for any faults returned in the response and prints out the error code and the error description. Then, the program execution is halted with the die command.
Related topics
Fault Checking with REST in Perl
© 2009-2012 SirsiDynix