| 1 | package Net::MundiPagg; | ||
| 2 | 1 | $Net::MundiPagg::VERSION = '0.000002'; | |
| 3 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use XML::Compile::SOAP11; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use XML::Compile::WSDL11; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use XML::Compile::Transport::SOAPHTTP; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | ▶ | use File::ShareDir qw{ module_file }; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | has 'client' => ( | ||
| 11 | is => 'ro', | ||
| 12 | builder => sub { | ||
| 13 | 0 | ▶ | my $wsdl = module_file( ref $_[0], 'mundipagg.wsdl' ); |
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||
| 14 | 0 | my $client = XML::Compile::WSDL11->new($wsdl); | |
| 15 | |||
| 16 | 0 | foreach my $i ( 0 .. 2 ) { | |
| 17 | 0 | my $xsd = module_file( ref $_[0], "schema$i.xsd" ); | |
| 18 | 0 | $client->importDefinitions($xsd); | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | $client->compileCalls; | |
| 22 | |||
| 23 | 0 | return $client; | |
| 24 | }, | ||
| 25 | 1 | ); | |
| 26 | |||
| 27 | sub BUILD { | ||
| 28 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
BUILD: not called CC=2 SCAR=12.6
Pod
documented
| |||
| 29 | |||
| 30 | 1 | ▶ | no strict 'refs'; ## no critic(TestingAndDebugging::ProhibitNoStrict) |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 0 | foreach my $method ( map { $_->name } $self->client->operations ) { | |
| 32 | 0 | *{$method} = sub { | |
| 33 | 0 | ▶ | my ( $this, %args ) = @_; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 34 | 0 | return $this->client->call( $method, %args ); | |
| 35 | 0 | }; | |
| 36 | } | ||
| 37 | |||
| 38 | 0 | return; | |
| 39 | } | ||
| 40 | |||
| 41 | 1 | 1; | |
| 42 | |||
| 43 | #ABSTRACT: Net::MundiPagg - Documentation coming soon :) | ||
| 44 | |||
| 45 | __END__ | ||