Our environment is Teamsite 6.1. I am trying to figure out the reason for occasional dying of SOAP::LITE module. The SOAP::LITE module is being used by us to deploy XML data to the database via a webserver. The webservice accepts XML as a string, extracts and deploys the data to the database based on the content type provided in the XML. The code works fine almost all the time. Occasionally, however I have noticed a failure at the time of calling the webmethod and the LOGGER object get destroyed without going in the expection handling piece. I am looking for a better error handling so that it won't give a false impression to the user that the deployment was successfull when in actuall it failed.
my $xmlString = SOAP:

ata->name($WEBSERVICE_VAR)->value($xmlAsString)->type('string');
#print $xmlString."\n";
my $client = SOAP::Lite
->uri($URI)
->on_action( sub { join '',
@_ } )
->proxy($webServiceaddress);
my $result;
#calling webmethods
if ($webMethodType eq "Insert")
{
$result = $client->InsertUpdate($xmlString); #----------- DIES write here
}
elsif ($webMethodType eq "Delete")
{
$result = $client->Delete($xmlString);
}
$Logger->writeMessage("\$result =". $result); #------- DOESN'T COME TO THIS LINE IF FAILS
if ($result->fault)
{
# error handling
$Logger->writeMessage("Fault String=". $result->faultstring);
return $result->faultstring;
}