6503Re: [soaplite] Problem with capturing fault SOAP::Lite
- Sep 23, 2010I 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@...>
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.
my $client = SOAP::Lite->new();
$client->proxy("some incorrect proxy");
my $message=SOAP::Data->name(some data);
# Do something here
#do something else here
Can't call method "fault" without a package or object reference at ./test.pl line 353.
- << Previous post in topic Next post in topic >>