« blib/lib/W3C/SOAP/WSDL/Document/InOutPuts.pm
↑ Summary
blib/lib/W3C/SOAP/WSDL/Document/Operation.pm »
| 1 | package W3C::SOAP::WSDL::Document::Binding; | ||||||||||
| 2 | |||||||||||
| 3 | # Created on: 2012-05-27 19:25:33 | ||||||||||
| 4 | # Create by: Ivan Wills | ||||||||||
| 5 | # $Id$ | ||||||||||
| 6 | # $Revision$, $HeadURL$, $Date$ | ||||||||||
| 7 | # $Revision$, $Source$, $Date$ | ||||||||||
| 8 | |||||||||||
| 9 | 5 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 5 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 5 | ▶ | use Scalar::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 5 | ▶ | use List::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | #use List::MoreUtils; | ||||||||||
| 15 | 5 | ▶ | use Data::Dumper qw/Dumper/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 5 | ▶ | use English qw/ -no_match_vars /; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 5 | ▶ | use W3C::SOAP::WSDL::Document::Operation; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | 5 | extends 'W3C::SOAP::Document::Node'; | |||||||||
| 20 | |||||||||||
| 21 | 5 | our $VERSION = 0.13; | |||||||||
| 22 | |||||||||||
| 23 | 5 | has style => ( | |||||||||
| 24 | is => 'rw', | ||||||||||
| 25 | isa => 'Str', | ||||||||||
| 26 | builder => '_style', | ||||||||||
| 27 | lazy => 1, | ||||||||||
| 28 | ); | ||||||||||
| 29 | 5 | has transport => ( | |||||||||
| 30 | is => 'rw', | ||||||||||
| 31 | isa => 'Str', | ||||||||||
| 32 | builder => '_transport', | ||||||||||
| 33 | lazy => 1, | ||||||||||
| 34 | ); | ||||||||||
| 35 | 5 | has operations => ( | |||||||||
| 36 | is => 'rw', | ||||||||||
| 37 | isa => 'ArrayRef[W3C::SOAP::WSDL::Document::Operation]', | ||||||||||
| 38 | builder => '_operations', | ||||||||||
| 39 | lazy => 1, | ||||||||||
| 40 | ); | ||||||||||
| 41 | |||||||||||
| 42 | sub _style { | ||||||||||
| 43 | 0 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
_style: not called CC=2 SCAR=17.9
| |||||||||||
| 44 | 0 | my $style = $self->node->getAttribute('style'); | |||||||||
| 45 | 0 | ▶ | return $style if $style; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | 0 | my ($child) = $self->document->xpc->findnode('soap:binding'. $self->node); | |||||||||
| 47 | 0 | return $child->getAttribute('style'); | |||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | sub _transport { | ||||||||||
| 51 | 0 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
_transport: not called CC=2 SCAR=17.9
| |||||||||||
| 52 | 0 | my $transport = $self->node->getAttribute('transport'); | |||||||||
| 53 | 0 | ▶ | return $transport if $transport; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 54 | 0 | my ($child) = $self->document->xpc->findnode('soap:binding'. $self->node); | |||||||||
| 55 | 0 | return $child->getAttribute('transport'); | |||||||||
| 56 | } | ||||||||||
| 57 | |||||||||||
| 58 | sub _operations { | ||||||||||
| 59 | 4 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
_operations: called CC=2 SCAR=6.9
| |||||||||||
| 60 | 4 | my @operations; | |||||||||
| 61 | 4 | my @nodes = $self->document->xpc->findnodes('wsdl:operation', $self->node); | |||||||||
| 62 | |||||||||||
| 63 | 4 | for my $node (@nodes) { | |||||||||
| 64 | 6 | push @operations, W3C::SOAP::WSDL::Document::Operation->new( | |||||||||
| 65 | parent_node => $self, | ||||||||||
| 66 | node => $node, | ||||||||||
| 67 | ); | ||||||||||
| 68 | } | ||||||||||
| 69 | |||||||||||
| 70 | 4 | return \@operations; | |||||||||
| 71 | } | ||||||||||
| 72 | |||||||||||
| 73 | 5 | 1; | |||||||||
| 74 | |||||||||||
| 75 | __END__ | ||||||||||
| 76 | |||||||||||
| 77 | =head1 NAME | ||||||||||
| 78 | |||||||||||
| 79 | W3C::SOAP::WSDL::Document::Binding - Bindings for WSDL documents | ||||||||||
| 80 | |||||||||||
| 81 | =head1 VERSION | ||||||||||
| 82 | |||||||||||
| 83 | This documentation refers to W3C::SOAP::WSDL::Document::Binding version 0.13. | ||||||||||
| 84 | |||||||||||
| 85 | =head1 SYNOPSIS | ||||||||||
| 86 | |||||||||||
| 87 | use W3C::SOAP::WSDL::Document::Binding; | ||||||||||
| 88 | |||||||||||
| 89 | # Brief but working code example(s) here showing the most common usage(s) | ||||||||||
| 90 | # This section will be as far as many users bother reading, so make it as | ||||||||||
| 91 | # educational and exemplary as possible. | ||||||||||
| 92 | |||||||||||
| 93 | |||||||||||
| 94 | =head1 DESCRIPTION | ||||||||||
| 95 | |||||||||||
| 96 | A C<W3C::SOAP::WSDL::Document::Binding> represents the bindings tags in a WSDL | ||||||||||
| 97 | document. | ||||||||||
| 98 | |||||||||||
| 99 | =head1 SUBROUTINES/METHODS | ||||||||||
| 100 | |||||||||||
| 101 | =over 4 | ||||||||||
| 102 | |||||||||||
| 103 | =back | ||||||||||
| 104 | |||||||||||
| 105 | =head1 DIAGNOSTICS | ||||||||||
| 106 | |||||||||||
| 107 | =head1 CONFIGURATION AND ENVIRONMENT | ||||||||||
| 108 | |||||||||||
| 109 | =head1 DEPENDENCIES | ||||||||||
| 110 | |||||||||||
| 111 | =head1 INCOMPATIBILITIES | ||||||||||
| 112 | |||||||||||
| 113 | =head1 BUGS AND LIMITATIONS | ||||||||||
| 114 | |||||||||||
| 115 | There are no known bugs in this module. | ||||||||||
| 116 | |||||||||||
| 117 | Please report problems to Ivan Wills (ivan.wills@gmail.com). | ||||||||||
| 118 | |||||||||||
| 119 | Patches are welcome. | ||||||||||
| 120 | |||||||||||
| 121 | =head1 AUTHOR | ||||||||||
| 122 | |||||||||||
| 123 | Ivan Wills - (ivan.wills@gmail.com) | ||||||||||
| 124 | |||||||||||
| 125 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 126 | |||||||||||
| 127 | Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). | ||||||||||
| 128 | All rights reserved. | ||||||||||
| 129 | |||||||||||
| 130 | This module is free software; you can redistribute it and/or modify it under | ||||||||||
| 131 | the same terms as Perl itself. See L<perlartistic>. This program is | ||||||||||
| 132 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; | ||||||||||
| 133 | without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||||||||||
| 134 | PARTICULAR PURPOSE. | ||||||||||
| 135 | |||||||||||
| 136 | =cut | ||||||||||