blib/lib/XML/Compile/SOAP/Extension.pm untested

filter: Statementstmt 0.0% 0 / 44 Branchbran n/a Conditioncond 0.0% 0 / 14 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 80 SCAR 6.9
CC
1
Cov
0%
new
2.0
init
2.0
wsdl11Init
2.0
CRAP 2.0
1 # Copyrights 2007-2021 by [Mark Overmeer <markov@cpan.org>].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of distribution XML-Compile-SOAP. Meta-POD processed
6 # with OODoc into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8  
9 package XML::Compile::SOAP::Extension;
10 use vars '$VERSION';
11 $VERSION = '3.27';
12  
13  
14 use warnings;
15 use strict;
16  
17 use Log::Report 'xml-compile-soap';
18  
19 my @ext;
20  
21  
22 sub new($@) { my $class = shift; (bless {}, $class)->init( {@_} ) }
23  
24 sub init($)
25 { my $self = shift;
26 trace "loading extension ".ref $self;
27 push @ext, $self;
28 $self;
29 }
30  
31 #--------
32  
33 ### For all methods named below: when called on an object, it is the stub
34 ### for the extension. Only when called as class method, it will walk all
35 ### extension objects.
36  
37 sub wsdl11Init($$)
38 { ref shift and return;
39 $_->wsdl11Init(@_) for @ext;
40 }
41  
42 #--------
43  
44 sub soap11OperationInit($$)
45 { ref shift and return;
46 $_->soap11OperationInit(@_) for @ext;
47 }
48  
49  
50 sub soap11ClientWrapper($$$)
51 { ref shift and return $_[1];
52 my ($op, $call, $args) = @_;
53 $call = $_->soap11ClientWrapper($op, $call, $args) for @ext;
54 $call;
55 }
56  
57  
58 sub soap11HandlerWrapper($$$)
59 { my ($thing, $op, $cb, $args) = @_;
60 ref $thing and return $cb;
61 $cb = $_->soap11HandlerWrapper($op, $cb, $args) for @ext;
62 $cb;
63 }
64  
65 #--------
66  
67 sub soap12OperationInit($$)
68 { ref shift and return;
69 $_->soap12OperationInit(@_) for @ext;
70 }
71  
72  
73 sub soap12ClientWrapper($$$)
74 { ref shift and return $_[1];
75 my ($op, $call, $args) = @_;
76 $call = $_->soap12ClientWrapper($op, $call, $args) for @ext;
77 $call;
78 }
79  
80  
81 sub soap12HandlerWrapper($$$)
82 { my ($thing, $op, $cb, $args) = @_;
83 ref $thing and return $cb;
84 $cb = $_->soap12HandlerWrapper($op, $cb, $args) for @ext;
85 $cb;
86 }
87  
88  
89 1;