use SOAP::Lite +autodispatch => proxy => 'https://testbed.org:8001/', on_fault => \&handle_fault; my $obj = auth->new();