Loading ...
Sorry, an error occurred while loading the content.

SOAP Lite error access faultstring with Google API

Expand Messages
  • Frank McCown
    Using SOAP-Lite versions 0.67 and 0.69 on Solaris and Linux platforms, I consistently get this error using the Google API example from
    Message 1 of 3 , Sep 28 6:30 AM
    • 0 Attachment
      Using SOAP-Lite versions 0.67 and 0.69 on Solaris and Linux platforms, I
      consistently get this error using the Google API example from

      http://search.cpan.org/src/BYRNE/SOAP-Lite-0.69/examples/google.pl

      Use of uninitialized value in pattern match (m//) at
      /home/fmccown/lib/perl5/site_perl/5.8.3/SOAP/Lite.pm line 427.
      Use of uninitialized value in pattern match (m//) at
      /home/fmccown/lib/perl5/site_perl/5.8.3/SOAP/Lite.pm line 427.

      The error messages are caused by the line:

      die $google->call->faultstring if $google->call->fault;

      after calling $google->doGoogleSearch(...). The code works perfectly
      under SOAP-Lite version 0.60.

      Any idea as to what is going on?

      Thanks,
      Frank
    • Frank McCown
      I forgot to include the complete error message in my previous post: v 0.67: Use of uninitialized value in pattern match (m//) at
      Message 2 of 3 , Sep 28 6:50 AM
      • 0 Attachment
        I forgot to include the complete error message in my previous post:

        v 0.67:

        Use of uninitialized value in pattern match (m//) at
        /home/fmccown/lib/site_perl/5.8.0/SOAP/Lite.pm line 413.
        Use of uninitialized value in pattern match (m//) at
        /home/fmccown/lib/site_perl/5.8.0/SOAP/Lite.pm line 413.
        0 >= 0 at ./test.pl line 13.

        v. 0.69:

        Use of uninitialized value in pattern match (m//) at
        /home/fmccown/lib/perl5/site_perl/5.8.3/SOAP/Lite.pm line 427.
        Use of uninitialized value in pattern match (m//) at
        /home/fmccown/lib/perl5/site_perl/5.8.3/SOAP/Lite.pm line 427.
        0 >= 0 at test.pl line 13.


        For both versions, the error is on the same line of code:

        sub splitqname { local($1,$2); $_[0] =~ /^(?:([^:]+):)?(.+)$/ ; return
        ($1,$2) }


        Thanks,
        Frank
      • Frank McCown
        ... The example Google Web API code that comes with SOAP::Lite at http://search.cpan.org/src/BYRNE/SOAP-Lite-0.69/examples/google.pl is no longer
        Message 3 of 3 , Oct 16, 2006
        • 0 Attachment
          --- In soaplite@yahoogroups.com, Frank McCown <fmccown@...> wrote:

          >>
          >> I forgot to include the complete error message in my previous post:
          >>
          >> v 0.67:
          >>
          >> Use of uninitialized value in pattern match (m//) at
          >> /home/fmccown/lib/site_perl/5.8.0/SOAP/Lite.pm line 413.
          >> Use of uninitialized value in pattern match (m//) at
          >> /home/fmccown/lib/site_perl/5.8.0/SOAP/Lite.pm line 413.
          >> 0 >= 0 at ./test.pl line 13.

          <snip>

          The example Google Web API code that comes with SOAP::Lite at

          http://search.cpan.org/src/BYRNE/SOAP-Lite-0.69/examples/google.pl

          is no longer functional. The following line:

          die $google->call->faultstring if $google->call->fault;

          should be replaced with:

          die $google->{_call}->faultstring if $google->{_call}->fault;

          Thanks,
          Frank
        Your message has been successfully submitted and would be delivered to recipients shortly.