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

6503Re: [soaplite] Problem with capturing fault SOAP::Lite

Expand Messages
  • Mithun Bhattacharya
    Sep 23, 2010
      I don't seem to be able to recreate your scenario.

      I tried setting the URL wrong in the proxy and SOAP::Lite says 404 Not Found at. If the host part is wrong the script error's out with 500 Can't connect to In either case you won't get can't call method fault.

      Looking at the error message in itself I would say the problem is because $output is undef though I can't think of a scenario where that could take place.

      Can you post the line 353 of test.pl so that we can respond better ?

      From: jaikanth <Jaikanth.Krishnaswamy@...>
      To: soaplite@yahoogroups.com
      Sent: Thu, September 16, 2010 12:59:12 PM
      Subject: [soaplite] Problem with capturing fault SOAP::Lite

      I am a beginner to using SOAP::Lite with perl
      Below is a code snippet I am using. I managed to induce a fault by providing an incorrect proxy.

      use SOAP::Lite;

      my $client = SOAP::Lite->new();
      $client->uri('some uri');
      $client->proxy("some incorrect proxy");
      my $message=SOAP::Data->name(some data);
      my $output=$client->methodname($message);
      print "$output";
      unless ($output->fault)
      # Do something here
      #do something else here
      Can't call method "fault" without a package or object reference at ./test.pl line 353.

    • Show all 3 messages in this topic