File Coverage

blib/lib/SOAP/XML/Client/Generic.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package SOAP::XML::Client::Generic;
2             $SOAP::XML::Client::Generic::VERSION = '2.8';
3 1     1   3073 use strict;
  1         1  
  1         38  
4 1     1   4 use Carp;
  1         1  
  1         67  
5              
6 1     1   4 use base qw(SOAP::XML::Client);
  1         1  
  1         129  
7              
8             # Actually do the call
9             sub _call {
10             my ( $self, $method ) = @_;
11              
12             my @params = ( $self->{sdb}->to_soap_data() );
13             unshift( @params, $self->header() ) if $self->header();
14              
15             my $caller
16             = $self->{soap}->uri( $self->uri() )
17             ->proxy( $self->proxy(), timeout => $self->timeout() )
18             ->soapversion( $self->soapversion() )->encoding( $self->encoding );
19              
20             my $res = $caller->$method(@params);
21             return $res, $caller->transport;
22             }
23              
24             1;
25             __END__