From: Thorsten S. <tsc...@am...> - 2010-06-23 06:32:13
|
Guten Tag Martin Kutter, am Dienstag, 22. Juni 2010 um 20:17 schrieben Sie: > sub DESTROY { > local $@; > eval { > > } > } > This restores $@ after the enclosing block. Thanks, I will try that later and would prefer that solution, too. I hope it works even if the eval is down in some called methods somewhere and not directly in DESTROY itself. > And I heard yesterday in my local perl mongers group that perl 5.13 > automatically localizes $@ in DESTROY, but I fear upgrading is not an > option ;-) I surely can't force to use bleeding edge perl, right. > What I don't read from your mails is whether your problem is already > fixed by re-throwing a SOAP::Fault - so please send again if not. Rethrowing the SOAP::Fault with the saved $@, like in my second example, seems to work and the client gets the fault instead of an empty response. Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig Telefon: Potsdam: 0331-743881-0 E-Mail: tsc...@am... Web: http://www.am-soft.de AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow |