eval { $soap->Method("arguments"); }; if ($@) { // provide some user feedback about the error in $@ }