line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::MundiPagg; |
2
|
|
|
|
|
|
|
$Net::MundiPagg::VERSION = '0.000001'; |
3
|
1
|
|
|
1
|
|
53980
|
use Moo; |
|
1
|
|
|
|
|
11241
|
|
|
1
|
|
|
|
|
6
|
|
4
|
1
|
|
|
1
|
|
2178
|
use XML::Compile::SOAP11; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use XML::Compile::WSDL11; |
6
|
|
|
|
|
|
|
use XML::Compile::Transport::SOAPHTTP; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use File::ShareDir qw{ module_file }; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'client' => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
builder => sub { |
13
|
|
|
|
|
|
|
my $wsdl = module_file( ref $_[0], 'mundipagg.wsdl' ); |
14
|
|
|
|
|
|
|
my $client = XML::Compile::WSDL11->new($wsdl); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
foreach my $i ( 0 .. 2 ) { |
17
|
|
|
|
|
|
|
my $xsd = module_file( ref $_[0], "schema$i.xsd" ); |
18
|
|
|
|
|
|
|
$client->importDefinitions($xsd); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
$client->compileCalls; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
return $client; |
24
|
|
|
|
|
|
|
}, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
our $AUTOLOAD; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
## no critic (Subroutines::RequireArgUnpacking) |
30
|
|
|
|
|
|
|
## no critic (ClassHierarchies::ProhibitAutoloading) |
31
|
|
|
|
|
|
|
sub AUTOLOAD { |
32
|
|
|
|
|
|
|
my ( $method, $self, %args ) = ( $AUTOLOAD, @_ ); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$method =~ s/.*:://g; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
return $self->client->call( $method, %args ); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
#ABSTRACT: Net::MundiPagg - Documentation coming soon :) |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |